From c539df3cbd60baa0d666b3f9b118f07b83e5e442 Mon Sep 17 00:00:00 2001 From: Nicholas Weaver Date: Sun, 6 Mar 2016 04:58:56 +0100 Subject: [PATCH] Fixes work manage testing mocks to make new job interface. --- scheduler/work_manager_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scheduler/work_manager_test.go b/scheduler/work_manager_test.go index ffaf0c907..9aa655056 100644 --- a/scheduler/work_manager_test.go +++ b/scheduler/work_manager_test.go @@ -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) @@ -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() {