From e8988bacc6d4c0df2fc8da2bb0abb3d000994fd8 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 17 Apr 2021 23:17:05 -0500 Subject: [PATCH] extend main test --- app/main_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main_test.go b/app/main_test.go index aa65140..b50286c 100644 --- a/app/main_test.go +++ b/app/main_test.go @@ -22,8 +22,10 @@ func Test_Main(t *testing.T) { os.Args = []string{"test", "--static.enabled", "--static.rule=*,/svc1, https://httpbin.org/get,https://feedmaster.umputun.com/ping", "--static.rule=*,/svc2/(.*), https://echo.umputun.com/$1,https://feedmaster.umputun.com/ping", - "--dbg", "--logger.stdout", "--listen=127.0.0.1:" + strconv.Itoa(port), "--signature"} - + "--file.enabled", "--file.name=discovery/provider/testdata/config.yml", + "--dbg", "--logger.enabled", "--logger.stdout", "--logger.file=/tmp/reproxy.log", + "--listen=127.0.0.1:" + strconv.Itoa(port), "--signature"} + defer os.Remove("/tmp/reproxy.log") done := make(chan struct{}) go func() { <-done