From 4bbb45ad3b1e371f37efd0d66d14b545faa3acd1 Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Wed, 31 Jul 2024 03:43:06 +0200 Subject: [PATCH] chore: Don't pass nil context (#64055) This doesn't blow up, but golangci-lint complains about it so following best practices here. Test plan: Go test still passes, linter doesn't complain anymore. --- cmd/frontend/graphqlbackend/affiliated_namespaces_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frontend/graphqlbackend/affiliated_namespaces_test.go b/cmd/frontend/graphqlbackend/affiliated_namespaces_test.go index 413a90ad903..096a0e2708c 100644 --- a/cmd/frontend/graphqlbackend/affiliated_namespaces_test.go +++ b/cmd/frontend/graphqlbackend/affiliated_namespaces_test.go @@ -69,7 +69,7 @@ func TestVisitorResolver_AffiliatedNamespaces(t *testing.T) { } want := int32(0) - if got := namespaceConnection.TotalCount(nil); got != want { + if got := namespaceConnection.TotalCount(context.Background()); got != want { t.Errorf("got %d namespaces, want %d", got, want) } }