@@ -1047,18 +1047,18 @@ func TestClient_ReadOnlyTransaction_WhenMultipleOperations_SessionLastUseTimeSho
1047
1047
MaxOpened : 1 ,
1048
1048
InactiveTransactionRemovalOptions : InactiveTransactionRemovalOptions {
1049
1049
actionOnInactiveTransaction : WarnAndClose ,
1050
- idleTimeThreshold : 30 * time .Millisecond ,
1050
+ idleTimeThreshold : 300 * time .Millisecond ,
1051
1051
},
1052
1052
},
1053
1053
})
1054
1054
defer teardown ()
1055
1055
server .TestSpanner .PutExecutionTime (MethodExecuteStreamingSql ,
1056
1056
SimulatedExecutionTime {
1057
- MinimumExecutionTime : 20 * time .Millisecond ,
1057
+ MinimumExecutionTime : 200 * time .Millisecond ,
1058
1058
})
1059
1059
server .TestSpanner .PutExecutionTime (MethodStreamingRead ,
1060
1060
SimulatedExecutionTime {
1061
- MinimumExecutionTime : 20 * time .Millisecond ,
1061
+ MinimumExecutionTime : 200 * time .Millisecond ,
1062
1062
})
1063
1063
ctx := context .Background ()
1064
1064
p := client .idleSessions
@@ -1090,11 +1090,11 @@ func TestClient_ReadOnlyTransaction_WhenMultipleOperations_SessionLastUseTimeSho
1090
1090
t .Fatalf ("Session lastUseTime times should not be equal" )
1091
1091
}
1092
1092
1093
- if (time .Now ().Sub (sessionPrevLastUseTime )).Milliseconds () < 40 {
1094
- t .Fatalf ("Expected session to be checkedout for more than 40 milliseconds" )
1093
+ if (time .Now ().Sub (sessionPrevLastUseTime )).Milliseconds () < 400 {
1094
+ t .Fatalf ("Expected session to be checkedout for more than 400 milliseconds" )
1095
1095
}
1096
- if (time .Now ().Sub (sessionCheckoutTime )).Milliseconds () < 40 {
1097
- t .Fatalf ("Expected session to be checkedout for more than 40 milliseconds" )
1096
+ if (time .Now ().Sub (sessionCheckoutTime )).Milliseconds () < 400 {
1097
+ t .Fatalf ("Expected session to be checkedout for more than 400 milliseconds" )
1098
1098
}
1099
1099
// force run task to clean up unexpected long-running sessions whose lastUseTime >= 3sec.
1100
1100
// The session should not be cleaned since the latest operation on the transaction has updated the lastUseTime.
0 commit comments