From 35e5a00888c42c6e9e1ef7a14d68b106520176ac Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 16 Dec 2021 23:01:34 +1030 Subject: [PATCH] Fix failing test with new config option --- web/server_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/server_test.go b/web/server_test.go index dd72d00..eb160b8 100644 --- a/web/server_test.go +++ b/web/server_test.go @@ -78,7 +78,8 @@ 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":"https://webhook.url.here","Path":"/your/screenshot/dir/here","Username":"","NoWatermark":false,"Exclude":[]}]}` { - t.Errorf("Got unexpected response %v", string(b)) + exp := `{"WatchInterval":10,"Version":2,"Port":9090,"Watchers":[{"WebHookURL":"https://webhook.url.here","Path":"/your/screenshot/dir/here","Username":"","NoWatermark":false,"HoldUploads":false,"Exclude":[]}]}` + if string(b) != exp { + t.Errorf("Got unexpected response\n%v\n%v", string(b), exp) } }