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

fixes tests by reading in config/cli flags

parent e337f5b5
No related branches found
No related tags found
No related merge requests found
package bundleprocessor package bundleprocessor
import ( import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync" "sync"
"testing" "testing"
...@@ -46,6 +48,11 @@ func BenchmarkValidateSignatures(b *testing.B) { ...@@ -46,6 +48,11 @@ func BenchmarkValidateSignatures(b *testing.B) {
wg.Wait() wg.Wait()
} }
func TestMain(m *testing.M) {
parameter.FetchConfig()
os.Exit(m.Run())
}
func TestValidateSignatures(t *testing.T) { func TestValidateSignatures(t *testing.T) {
bundleFactory := client.NewBundleFactory() bundleFactory := client.NewBundleFactory()
bundleFactory.AddInput(seed.GetAddress(0), -400) bundleFactory.AddInput(seed.GetAddress(0), -400)
......
package tangle package tangle
import ( import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync" "sync"
"testing" "testing"
...@@ -11,6 +13,11 @@ import ( ...@@ -11,6 +13,11 @@ import (
"github.com/iotaledger/iota.go/trinary" "github.com/iotaledger/iota.go/trinary"
) )
func TestMain(m *testing.M) {
parameter.FetchConfig()
os.Exit(m.Run())
}
func TestSolidifier(t *testing.T) { func TestSolidifier(t *testing.T) {
// show all error messages for tests // show all error messages for tests
// TODO: adjust logger package // TODO: adjust logger package
......
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