Skip to content

Commit

Permalink
Merge #72028
Browse files Browse the repository at this point in the history
72028: sql: fix bad length test in tests r=knz a=stevendanna

`len` always returns >= 0.

Release note: None

Co-authored-by: Steven Danna <[email protected]>
  • Loading branch information
craig[bot] and stevendanna committed Oct 29, 2021
2 parents 9f2a2fe + d6fa4c8 commit 60a41f6
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 60a41f6

Please sign in to comment.