From c3cf1d988b980e9408862d380f7ae33dae501e05 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 13 Jan 2021 11:11:36 +0300 Subject: Update styly of the .rr.yaml Add comments Add support for the automatically set RR_RPC, RR_HTTP env variables for the worker process. --- tests/plugins/config/config_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/plugins/config/config_test.go') diff --git a/tests/plugins/config/config_test.go b/tests/plugins/config/config_test.go index 858fcb80..6d95ba70 100755 --- a/tests/plugins/config/config_test.go +++ b/tests/plugins/config/config_test.go @@ -44,6 +44,7 @@ func TestViperProvider_Init(t *testing.T) { signal.Notify(c, os.Interrupt) tt := time.NewTicker(time.Second * 2) + defer tt.Stop() for { select { @@ -53,12 +54,9 @@ func TestViperProvider_Init(t *testing.T) { return case <-c: er := container.Stop() - if er != nil { - panic(er) - } + assert.NoError(t, er) return case <-tt.C: - tt.Stop() assert.NoError(t, container.Stop()) return } -- cgit v1.2.3