diff --git a/pkg/scalers/scaler_test.go b/pkg/scalers/scaler_test.go index e4584be5d7a..59508b9ba58 100644 --- a/pkg/scalers/scaler_test.go +++ b/pkg/scalers/scaler_test.go @@ -466,7 +466,7 @@ func TestConvertStringToType(t *testing.T) { if testData.isError { assert.NotNilf(t, err, "test %s: expected error but got success, testData - %+v", testData.name, testData) - assert.Containsf(t, err.Error(), testData.errorMessage, "test %s", testData.name, testData.errorMessage) + assert.Containsf(t, err.Error(), testData.errorMessage, "test %s: %s", testData.name, testData.errorMessage) } else { assert.Nil(t, err) assert.Equalf(t, testData.expectedOutput, val, "test %s: expected %s but got %s", testData.name, testData.expectedOutput, val)