mirror of
https://github.com/tuna/tunasync.git
synced 2025-06-14 13:32:43 +00:00
Fix test: initialize dockerHook with embedded provider
This commit is contained in:
parent
06fce98c00
commit
4854d9b981
@ -109,7 +109,7 @@ func TestHTTPServer(t *testing.T) {
|
|||||||
So(res[_errorKey], ShouldEqual, "invalid workerID "+invalidWorker)
|
So(res[_errorKey], ShouldEqual, "invalid workerID "+invalidWorker)
|
||||||
})
|
})
|
||||||
|
|
||||||
Convey("flush disabled jobs", func(ctx C) {
|
Convey("flush disabled jobs", func(ctx C) {
|
||||||
req, err := http.NewRequest("DELETE", baseURL+"/jobs/disabled", nil)
|
req, err := http.NewRequest("DELETE", baseURL+"/jobs/disabled", nil)
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
clt := &http.Client{}
|
clt := &http.Client{}
|
||||||
|
@ -55,8 +55,10 @@ sleep 10
|
|||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
|
|
||||||
d := &dockerHook{
|
d := &dockerHook{
|
||||||
provider: provider,
|
emptyHook: emptyHook{
|
||||||
image: "alpine",
|
provider: provider,
|
||||||
|
},
|
||||||
|
image: "alpine",
|
||||||
volumes: []string{
|
volumes: []string{
|
||||||
fmt.Sprintf("%s:%s", cmdScript, "/bin/cmd.sh"),
|
fmt.Sprintf("%s:%s", cmdScript, "/bin/cmd.sh"),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user