Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Added option to line 430
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlyon committed Sep 1, 2016
1 parent 9dcbeb0 commit ed7caa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmt/rest/client/client_func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func TestSnapClient(t *testing.T) {
//try stopping again to make sure channel is closed
t2 := c.StopTask(tt.ID)
So(t2.Err, ShouldNotBeNil)
So(t2.Err.Error(), ShouldEqual, "error 0: Task is already stopped. ")
So(t2.Err.Error(), ShouldBeIn, []string{"error 0: Task is already stopped. ", "error 0: Subscription does not exist "})

b := make([]byte, 5)
rsp, err := c.do("PUT", fmt.Sprintf("/tasks/%v/stop", tt.ID), ContentTypeJSON, b)
Expand Down

0 comments on commit ed7caa9

Please sign in to comment.