From ed7caa979bd494d563375f0df193a4ea3ac74149 Mon Sep 17 00:00:00 2001 From: Kelly Lyon Date: Thu, 1 Sep 2016 12:39:35 -0700 Subject: [PATCH] Added option to line 430 --- mgmt/rest/client/client_func_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mgmt/rest/client/client_func_test.go b/mgmt/rest/client/client_func_test.go index df42c168f..10a7e0248 100644 --- a/mgmt/rest/client/client_func_test.go +++ b/mgmt/rest/client/client_func_test.go @@ -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)