Remove some system-specific testdata
This commit is contained in:
parent
26d4272aa2
commit
f9614ffc48
@ -71,7 +71,7 @@ func DefaultConfig() *ConfigV2 {
|
||||
c.Port = 9090
|
||||
w := Watcher{
|
||||
WebHookURL: "abcedf",
|
||||
Path: "/Users/justin/tmp",
|
||||
Path: "/your/screenshot/dir/here",
|
||||
Username: "",
|
||||
NoWatermark: false,
|
||||
Exclude: []string{},
|
||||
|
@ -66,9 +66,6 @@ func (u *Uploader) Upload() {
|
||||
}
|
||||
|
||||
func (u *Upload) processUpload() {
|
||||
|
||||
// file := u.originalFilename
|
||||
|
||||
if u.webhookURL == "" {
|
||||
daulog.SendLog("WebHookURL is not configured - cannot upload!", daulog.LogTypeError)
|
||||
return
|
||||
|
@ -78,7 +78,7 @@ func TestGetConfig(t *testing.T) {
|
||||
t.Errorf("expected error to be nil got %v", err)
|
||||
}
|
||||
|
||||
if string(b) != `{"WatchInterval":10,"Version":2,"Port":9090,"Watchers":[{"WebHookURL":"abcedf","Path":"/Users/justin/tmp","Username":"","NoWatermark":false,"Exclude":[]}]}` {
|
||||
if string(b) != `{"WatchInterval":10,"Version":2,"Port":9090,"Watchers":[{"WebHookURL":"abcedf","Path":"/your/screenshot/dir/here","Username":"","NoWatermark":false,"Exclude":[]}]}` {
|
||||
t.Errorf("Got unexpected response %v", string(b))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user