From d14fc35e0ad4fd7ac563eaf152571ea2452f898c Mon Sep 17 00:00:00 2001 From: manisha kumari Date: Thu, 30 May 2024 15:02:34 +0530 Subject: [PATCH] fixing Test file Signed-off-by: manisha kumari --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 48e8d26..40a94b4 100644 --- a/main_test.go +++ b/main_test.go @@ -127,7 +127,7 @@ func TestCheckArgs(t *testing.T) { event := &corev2.Event{} err := checkArgs(event) fmt.Println("ERR is", err) - assert.NotNil(t, err) + assert.NotNil(t, err.Error()) assert.Equal(t, fmt.Sprintf("--%s or SLACK_WEBHOOK_URL environment variable is required", webHookURL), err.Error()) // Test case where webhook URL is provided