Skip to content

Commit

Permalink
lxc/list_test: limit column sizes to Int31 (0=>math.MaxInt32)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Feb 21, 2025
1 parent 1c92007 commit 1798f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func TestColumns(t *testing.T) {
buffer.WriteString(":0")
case 6, 7:
buffer.WriteRune(':')
buffer.WriteString(strconv.FormatUint(uint64(rand.Uint32()), 10))
buffer.WriteString(strconv.FormatUint(uint64(rand.Int31()), 10))
}

// Unconditionally append a comma so that we don't create an invalid
Expand Down

0 comments on commit 1798f41

Please sign in to comment.