diff --git a/internal/state/state_test.go b/internal/state/state_test.go index 3d98b1c..e775e74 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -4,6 +4,8 @@ import ( "fmt" "testing" "time" + + "gitlab.com/whom/bingobot/internal/logging" ) /* WARNING: @@ -12,8 +14,15 @@ import ( */ const TestTok = "TEST_NAME" +var loggingInitialized = false func SetupTest(t *testing.T) { + // have to set up logger + if !loggingInitialized { + logging.Init() + loggingInitialized = true + } + old, _ := time.Parse( time.RFC3339, VeryOldVote,