Fix test
This commit is contained in:
parent
6ece881a52
commit
3776374747
@ -19,7 +19,7 @@ func TestWatchNewFiles(t *testing.T) {
|
|||||||
|
|
||||||
w := watch{
|
w := watch{
|
||||||
config: config.Watcher{Path: dir},
|
config: config.Watcher{Path: dir},
|
||||||
uploader: upload.Uploader{},
|
uploader: upload.NewUploader(),
|
||||||
lastCheck: time.Now(),
|
lastCheck: time.Now(),
|
||||||
newLastCheck: time.Now(),
|
newLastCheck: time.Now(),
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ func TestExclsion(t *testing.T) {
|
|||||||
|
|
||||||
w := watch{
|
w := watch{
|
||||||
config: config.Watcher{Path: dir, Exclude: []string{"thumb", "tiny"}},
|
config: config.Watcher{Path: dir, Exclude: []string{"thumb", "tiny"}},
|
||||||
uploader: upload.Uploader{},
|
uploader: upload.NewUploader(),
|
||||||
lastCheck: time.Now(),
|
lastCheck: time.Now(),
|
||||||
newLastCheck: time.Now(),
|
newLastCheck: time.Now(),
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ func TestCheckPath(t *testing.T) {
|
|||||||
|
|
||||||
w := watch{
|
w := watch{
|
||||||
config: config.Watcher{Path: dir},
|
config: config.Watcher{Path: dir},
|
||||||
uploader: upload.Uploader{},
|
uploader: upload.NewUploader(),
|
||||||
lastCheck: time.Now(),
|
lastCheck: time.Now(),
|
||||||
newLastCheck: time.Now(),
|
newLastCheck: time.Now(),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user