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.
This commit is contained in:
Erik Seliger 2024-07-31 03:43:06 +02:00 committed by GitHub
parent f09d8d277d
commit 4bbb45ad3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}