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

Commit

Permalink
Adds IsError() to match new promise interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxbat committed Mar 6, 2016
1 parent 86080da commit 8209778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scheduler/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"fmt"
"os"
"path"
"sync"
"testing"
"time"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8209778

Please sign in to comment.