From 8f28bf7fbd5cfa1c0ad7c269c3257b47bfa80da5 Mon Sep 17 00:00:00 2001 From: WVerlaek Date: Wed, 5 Jan 2022 17:21:16 +0100 Subject: [PATCH] lint --- test/e2e/fleet_test.go | 4 ++-- test/e2e/framework/framework.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/fleet_test.go b/test/e2e/fleet_test.go index c7ff98a4eb..b4b79bc40c 100644 --- a/test/e2e/fleet_test.go +++ b/test/e2e/fleet_test.go @@ -223,8 +223,8 @@ func TestFleetRollingUpdate(t *testing.T) { t.Parallel() ctx := context.Background() // Use scaleFleetPatch (true) or scaleFleetSubresource (false) - fixtures := []bool{true} //, false} // TODO Enable these again - maxSurge := []string{"25%"} //, "10%"} // TODO + fixtures := []bool{true} // , false} // TODO Enable these again + maxSurge := []string{"25%"} // , "10%"} // TODO doCycle := true // TODO: fixture? for _, usePatch := range fixtures { diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 7bc09b6a16..70c69d0f3c 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -278,6 +278,7 @@ func (f *Framework) WaitForGameServerState(t *testing.T, gs *agonesv1.GameServer state, gs.Namespace, gs.Name) } +// GetGameServer gets the specified GameServer by namespace/name or fails the test with an error. func (f *Framework) GetGameServer(t *testing.T, namespace string, name string) *agonesv1.GameServer { gs, err := f.AgonesClient.AgonesV1().GameServers(namespace).Get(context.Background(), name, metav1.GetOptions{}) require.NoError(t, err, "failed to get gameserver: %s/%s", namespace, name)