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

Commit

Permalink
Fixes work manage testing mocks to make new job interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxbat committed Mar 6, 2016
1 parent 77d6b1a commit 8a9fec0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scheduler/work_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (mj *mockJob) Errors() []error { return mj.errors }
func (mj *mockJob) StartTime() time.Time { return mj.starttime }
func (mj *mockJob) Deadline() time.Time { return mj.deadline }
func (mj *mockJob) Type() jobType { return collectJobType }
func (mj *mockJob) TypeString() string { return "" }
func (mj *mockJob) TaskID() string { return "" }

// Complete the first incomplete rendez-vous (if there is one)
Expand All @@ -106,6 +107,14 @@ func (mj *mockJob) Run() {
mj.completePromise.Complete([]error{})
}

func (mj *mockJob) Name() string {
return "n/a"
}

func (mj *mockJob) Version() int {
return 0
}

func TestWorkerManager(t *testing.T) {
log.SetLevel(log.FatalLevel)
Convey(".Work()", t, func() {
Expand Down

0 comments on commit 8a9fec0

Please sign in to comment.