summaryrefslogtreecommitdiff
path: root/tests/plugins/config/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/config/config_test.go')
-rwxr-xr-xtests/plugins/config/config_test.go6
1 files changed, 2 insertions, 4 deletions
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
}