From 49571cce22418874ca9a4e7bf27b701a0471ad86 Mon Sep 17 00:00:00 2001 From: dttung2905 Date: Mon, 29 Jan 2024 20:56:05 +0000 Subject: [PATCH] Revert and minor fix Signed-off-by: dttung2905 --- pkg/scalers/scaler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)