Skip to content

Commit

Permalink
fixing failing tests (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman authored Aug 26, 2024
1 parent ac1bd16 commit 322551d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/xraywatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 322551d

Please sign in to comment.