diff --git a/plugins/bundleprocessor/bundleprocessor_test.go b/plugins/bundleprocessor/bundleprocessor_test.go index 484d6a29b3df434e2f97e49c7985d5c9e6b6480a..b8cdd9dff394698e397c85f7a7ff09915a825d10 100644 --- a/plugins/bundleprocessor/bundleprocessor_test.go +++ b/plugins/bundleprocessor/bundleprocessor_test.go @@ -11,9 +11,11 @@ import ( "github.com/iotaledger/goshimmer/plugins/tangle" "github.com/iotaledger/goshimmer/plugins/tipselection" "github.com/iotaledger/hive.go/events" + "github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/node" "github.com/iotaledger/iota.go/consts" "github.com/magiconair/properties/assert" + "github.com/spf13/viper" ) var seed = client.NewSeed("YFHQWAUPCXC9S9DSHP9NDF9RLNPMZVCMSJKUKQP9SWUSUCPRQXCMDVDVZ9SHHESHIQNCXWBJF9UJSWE9Z", consts.SecurityLevelMedium) @@ -23,6 +25,7 @@ func init() { if err != nil { log.Fatalf("Failed to initialize config: %s", err) } + logger.InitGlobalLogger(&viper.Viper{}) } func BenchmarkValidateSignatures(b *testing.B) { diff --git a/plugins/tangle/solidifier_test.go b/plugins/tangle/solidifier_test.go index 139febe3a4f2e240d9fc82f6629ce2868a6ec113..e93cfdce6fb9a5af113d590309784deb68aad5c9 100644 --- a/plugins/tangle/solidifier_test.go +++ b/plugins/tangle/solidifier_test.go @@ -9,7 +9,9 @@ import ( "github.com/iotaledger/goshimmer/packages/model/value_transaction" "github.com/iotaledger/goshimmer/packages/parameter" "github.com/iotaledger/hive.go/events" + "github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/node" + "github.com/spf13/viper" "github.com/stretchr/testify/require" ) @@ -18,6 +20,8 @@ func init() { if err != nil { log.Fatalf("Failed to initialize config: %s", err) } + + logger.InitGlobalLogger(&viper.Viper{}) } func TestSolidifier(t *testing.T) {