镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
feature(worker): implemented Worker object, worker side code is almost done
这个提交包含在:
@@ -105,7 +105,7 @@ func TestMirrorJob(t *testing.T) {
|
||||
select {
|
||||
case <-managerChan:
|
||||
So(0, ShouldEqual, 1) // made this fail
|
||||
case <-job.stopped:
|
||||
case <-job.disabled:
|
||||
So(0, ShouldEqual, 0)
|
||||
}
|
||||
})
|
||||
@@ -145,7 +145,7 @@ echo $TUNASYNC_WORKING_DIR
|
||||
So(err, ShouldBeNil)
|
||||
So(string(loggedContent), ShouldEqual, exceptedOutput)
|
||||
job.ctrlChan <- jobDisable
|
||||
<-job.stopped
|
||||
<-job.disabled
|
||||
})
|
||||
|
||||
Convey("If we don't kill it", func(ctx C) {
|
||||
@@ -168,7 +168,7 @@ echo $TUNASYNC_WORKING_DIR
|
||||
So(err, ShouldBeNil)
|
||||
So(string(loggedContent), ShouldEqual, exceptedOutput)
|
||||
job.ctrlChan <- jobDisable
|
||||
<-job.stopped
|
||||
<-job.disabled
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户