From 8209778e5429f89daed94f7e47a7676697f57d2a Mon Sep 17 00:00:00 2001 From: Nicholas Weaver Date: Sun, 6 Mar 2016 06:56:28 +0100 Subject: [PATCH] Adds IsError() to match new promise interface changes --- scheduler/workflow_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scheduler/workflow_test.go b/scheduler/workflow_test.go index 5437d9c8e..093c3975f 100644 --- a/scheduler/workflow_test.go +++ b/scheduler/workflow_test.go @@ -24,6 +24,7 @@ import ( "fmt" "os" "path" + "sync" "testing" "time" @@ -127,6 +128,7 @@ func TestCollectPublishWorkflow(t *testing.T) { // The mocks below are here for testing work submission type Mock1 struct { + sync.Mutex count int errorIndex int delay time.Duration @@ -171,6 +173,10 @@ func (m *Mock1) IsComplete() bool { return false } +func (m *Mock1) IsError() bool { + return false +} + func (m *Mock1) Job() job { return nil }