diff --git a/channels/manager_test.go b/channels/manager_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..39911b2fccef6679c692e7e4bff5cd182728d7b9
--- /dev/null
+++ b/channels/manager_test.go
@@ -0,0 +1,15 @@
+package channels
+
+import (
+	"os"
+	"testing"
+
+	jww "github.com/spf13/jwalterweatherman"
+)
+
+func TestMain(m *testing.M) {
+	// many tests trigger warn prints, set the out threshold so the warns
+	// can be seen in the logs
+	jww.SetStdoutThreshold(jww.LevelWarn)
+	os.Exit(m.Run())
+}
diff --git a/channels/userListener_test.go b/channels/userListener_test.go
index 7a2ec28ac810a3855c53bacb5354e32a18ff2694..5a5a0035d0dea08e84940df7b7753b935b449587 100644
--- a/channels/userListener_test.go
+++ b/channels/userListener_test.go
@@ -3,9 +3,7 @@ package channels
 import (
 	"bytes"
 	"crypto/ed25519"
-	jww "github.com/spf13/jwalterweatherman"
 	"math/rand"
-	"os"
 	"testing"
 	"time"
 
@@ -19,13 +17,6 @@ import (
 	"gitlab.com/xx_network/primitives/id"
 )
 
-func TestMain(m *testing.M) {
-	// many tests trigger warn prints, set the out threshold so the warns
-	// can be seen in the logs
-	jww.SetStdoutThreshold(jww.LevelWarn)
-	os.Exit(m.Run())
-}
-
 type triggerEventDummy struct {
 	gotData bool