Skip to content
Snippets Groups Projects
Commit 9aa423a9 authored by Luca Moser's avatar Luca Moser
Browse files

init global logger in tests

parent dfdeee43
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment