Skip to content

Commit

Permalink
Improve failure messages for supportedversion unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Grimm <[email protected]>
  • Loading branch information
dgn committed Oct 21, 2024
1 parent 552d34f commit bc4b0d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/test/util/supportedversion/supportedversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (

func TestInit(t *testing.T) {
// no need to call init(), since it's called automatically
assert.True(t, len(List) > 0, "List should not be empty")
assert.True(t, len(Map) > 0, "M should not be empty")
assert.True(t, Default != "", "Default should not be empty")
assert.True(t, Old != "", "Default should not be empty")
assert.True(t, New != "", "Default should not be empty")
assert.True(t, len(List) > 0, "supportedversion.List should not be empty")
assert.True(t, len(Map) > 0, "supportedversion.M should not be empty")
assert.True(t, Default != "", "supportedversion.Default should not be empty")
assert.True(t, Old != "", "supportedversion.Old should not be empty")
assert.True(t, New != "", "supportedversion.New should not be empty")

assert.Equal(t, len(List), len(Map), "Map should be same size as List")
for _, vi := range List {
Expand Down

0 comments on commit bc4b0d8

Please sign in to comment.