Skip to content
Snippets Groups Projects
Commit b2cfa3f9 authored by benjamin's avatar benjamin
Browse files

fixed tests

parent 55436a25
No related branches found
No related tags found
2 merge requests!510Release,!432Control node reg
......@@ -38,7 +38,7 @@ func TestLoadRegistrar_New(t *testing.T) {
nodeChan := make(chan commNetwork.NodeGateway, InputChanLen)
r, err := LoadRegistrar(session, sender, &MockClientComms{},
rngGen, nodeChan)
rngGen, nodeChan, func() int { return 100 })
if err != nil {
t.Fatalf("Failed to create new registrar: %+v", err)
}
......@@ -71,7 +71,7 @@ func TestLoadRegistrar_Load(t *testing.T) {
// Load the store and check its attributes
r, err := LoadRegistrar(
testR.session, testR.sender, testR.comms, testR.rng, testR.c)
testR.session, testR.sender, testR.comms, testR.rng, testR.c, func() int { return 100 })
if err != nil {
t.Fatalf("Unable to load store: %+v", err)
}
......
......@@ -101,7 +101,7 @@ func makeTestRegistrar(mockComms *MockClientComms, t *testing.T) *registrar {
nodeChan := make(chan commNetwork.NodeGateway, InputChanLen)
r, err := LoadRegistrar(
session, sender, mockComms, rngGen, nodeChan)
session, sender, mockComms, rngGen, nodeChan, func() int { return 100 })
if err != nil {
t.Fatalf("Failed to create new registrar: %+v", err)
}
......
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