Skip to content

Commit

Permalink
sql: fix bad length test in tests
Browse files Browse the repository at this point in the history
`len` always returns >= 0.

Release note: None
  • Loading branch information
stevendanna committed Oct 27, 2021
1 parent fa26501 commit d6fa4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/pgwire/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6fa4c8

Please sign in to comment.