From cf159a2d61ab9daff1269d8702c91ccdaaba6c18 Mon Sep 17 00:00:00 2001 From: Ivy Gooch Date: Fri, 3 May 2024 16:56:53 +0000 Subject: [PATCH] Increases the SDKServerReserveTimeout tolerance for difference between 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 --- pkg/sdkserver/sdkserver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sdkserver/sdkserver_test.go b/pkg/sdkserver/sdkserver_test.go index 6a8d4ed572..8809db8488 100644 --- a/pkg/sdkserver/sdkserver_test.go +++ b/pkg/sdkserver/sdkserver_test.go @@ -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) {