From 29fdca1ec6ae2c95e5aec3d76d62cd2bc3b828e8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 16 Dec 2020 19:56:45 +0300 Subject: Set log level to ERROR in Reload plugin tests --- plugins/reload/tests/reload_plugin_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/reload/tests/reload_plugin_test.go b/plugins/reload/tests/reload_plugin_test.go index 6656b78c..37ce0c91 100644 --- a/plugins/reload/tests/reload_plugin_test.go +++ b/plugins/reload/tests/reload_plugin_test.go @@ -30,7 +30,7 @@ const testCopyToDir string = "unit_tests_copied" const hugeNumberOfFiles uint = 5000 func TestReloadInit(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ @@ -113,7 +113,7 @@ func reloadTestInit(t *testing.T) { } func TestReloadHugeNumberOfFiles(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ @@ -219,7 +219,7 @@ func reloadHugeNumberOfFiles(t *testing.T) { // Should be events only about creating files with txt ext func TestReloadFilterFileExt(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ @@ -337,7 +337,7 @@ func reloadFilteredExt(t *testing.T) { // Should be events only about creating files with txt ext func TestReloadCopy3k(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ @@ -616,7 +616,7 @@ func reloadMake3kFiles(t *testing.T) { } func TestReloadNoRecursion(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ -- cgit v1.2.3