From f9614ffc48093386deda61701ba843e8e642fae2 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sun, 10 Oct 2021 11:52:19 +1030 Subject: [PATCH] Remove some system-specific testdata --- config/config.go | 2 +- upload/upload.go | 3 --- web/server_test.go | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index 0fc3784..dc458bb 100644 --- a/config/config.go +++ b/config/config.go @@ -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{}, diff --git a/upload/upload.go b/upload/upload.go index 9457ae9..bc750c1 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -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 diff --git a/web/server_test.go b/web/server_test.go index fcda253..0fa2e8c 100644 --- a/web/server_test.go +++ b/web/server_test.go @@ -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)) } }