mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
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:
parent
f09d8d277d
commit
4bbb45ad3b
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user