Skip to content

Commit

Permalink
Increases the SDKServerReserveTimeout tolerance for difference betwee…
Browse files Browse the repository at this point in the history
…n when the game server is reserved to when the test checks that the game server has been reserved from 1 second to 1.5 seconds
  • Loading branch information
igooch committed May 3, 2024
1 parent bc1d31e commit cf159a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdkserver/sdkserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ func TestSDKServerReserveTimeout(t *testing.T) {
}
assertReservedUntilDuration := func(d time.Duration) func(status agonesv1.GameServerStatus) {
return func(status agonesv1.GameServerStatus) {
assert.WithinDuration(t, time.Now().Add(d), status.ReservedUntil.Time, 1*time.Second)
assert.WithinDuration(t, time.Now().Add(d), status.ReservedUntil.Time, 1500*time.Millisecond)
}
}
assertReservedUntilNil := func(status agonesv1.GameServerStatus) {
Expand Down

0 comments on commit cf159a2

Please sign in to comment.