summaryrefslogtreecommitdiff
path: root/internal/media/util_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/util_test.go')
-rw-r--r--internal/media/util_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/media/util_test.go b/internal/media/util_test.go
index c54fb6f2c..fb36e1476 100644
--- a/internal/media/util_test.go
+++ b/internal/media/util_test.go
@@ -19,11 +19,13 @@
package media
import (
- "github.com/sirupsen/logrus"
- "github.com/superseriousbusiness/gotosocial/internal/log"
"io/ioutil"
"testing"
+ "github.com/spf13/viper"
+ "github.com/superseriousbusiness/gotosocial/internal/config"
+ "github.com/superseriousbusiness/gotosocial/internal/log"
+
"github.com/stretchr/testify/suite"
)
@@ -38,11 +40,11 @@ type MediaUtilTestSuite struct {
// SetupSuite sets some variables on the suite that we can use as consts (more or less) throughout
func (suite *MediaUtilTestSuite) SetupSuite() {
// doesn't use testrig.InitTestLog() helper to prevent import cycle
- err := log.Initialize(logrus.TraceLevel.String())
+ viper.Set(config.Keys.LogLevel, "trace")
+ err := log.Initialize()
if err != nil {
panic(err)
}
-
}
func (suite *MediaUtilTestSuite) TearDownSuite() {