From 7511d1105a0280e034bab1de551e017025e76a06 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Mon, 26 Aug 2024 09:36:08 +0300 Subject: [PATCH] fixing failing tests --- tests/xraywatch_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/xraywatch_test.go b/tests/xraywatch_test.go index 30d0f4e0c..e317ec63c 100644 --- a/tests/xraywatch_test.go +++ b/tests/xraywatch_test.go @@ -314,17 +314,17 @@ func testXrayWatchUpdateMissingWatch(t *testing.T) { paramsMissingWatch.Policies = []utils.AssignedPolicy{} err := testsXrayWatchService.Update(paramsMissingWatch) - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Failed to update Watch: Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func testXrayWatchDeleteMissingWatch(t *testing.T) { err := testsXrayWatchService.Delete("client-go-tests-watch-builds-missing") - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Failed to delete Watch: Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func testXrayWatchGetMissingWatch(t *testing.T) { _, err := testsXrayWatchService.Get("client-go-tests-watch-builds-missing") - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func validateWatchGeneralSettings(t *testing.T, params utils.WatchParams) {