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
Branches
Tags
No related merge requests found
package bundleprocessor
import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync"
"testing"
......@@ -46,6 +48,11 @@ func BenchmarkValidateSignatures(b *testing.B) {
wg.Wait()
}
func TestMain(m *testing.M) {
parameter.FetchConfig()
os.Exit(m.Run())
}
func TestValidateSignatures(t *testing.T) {
bundleFactory := client.NewBundleFactory()
bundleFactory.AddInput(seed.GetAddress(0), -400)
......
package tangle
import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync"
"testing"
......@@ -11,6 +13,11 @@ import (
"github.com/iotaledger/iota.go/trinary"
)
func TestMain(m *testing.M) {
parameter.FetchConfig()
os.Exit(m.Run())
}
func TestSolidifier(t *testing.T) {
// show all error messages for tests
// TODO: adjust logger package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment