From 7a95d05258836f6ce3d57ed3adb10e97259f6d54 Mon Sep 17 00:00:00 2001 From: Daniel Grimm Date: Mon, 21 Oct 2024 09:56:06 +0200 Subject: [PATCH] Improve failure messages for supportedversion unit tests Signed-off-by: Daniel Grimm --- .../util/supportedversion/supportedversion_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/test/util/supportedversion/supportedversion_test.go b/pkg/test/util/supportedversion/supportedversion_test.go index a850ebbae..2281cd5e0 100644 --- a/pkg/test/util/supportedversion/supportedversion_test.go +++ b/pkg/test/util/supportedversion/supportedversion_test.go @@ -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.Map 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 {