From d6fa4c82f307bdeb75f8b8d2d8657f626ae867f6 Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Wed, 27 Oct 2021 09:58:40 +0100 Subject: [PATCH] sql: fix bad length test in tests `len` always returns >= 0. Release note: None --- pkg/sql/pgwire/auth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sql/pgwire/auth_test.go b/pkg/sql/pgwire/auth_test.go index 0366b59af673..bb06c5d36d08 100644 --- a/pkg/sql/pgwire/auth_test.go +++ b/pkg/sql/pgwire/auth_test.go @@ -275,7 +275,7 @@ func hbaRunTest(t *testing.T, insecure bool) { return "ok", err case "authlog": - if len(td.CmdArgs) < 0 { + if len(td.CmdArgs) < 1 { t.Fatal("not enough arguments") } numEntries, err := strconv.Atoi(td.CmdArgs[0].Key)