Skip to content

Commit ed54911

Browse files
committed
fix test break, since we are sending a new message
1 parent a27c745 commit ed54911

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

replication_request_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ func TestReplicationRequestNotarizations(t *testing.T) {
7070
bb := testutil.NewTestBlockBuilder()
7171
nodes := []simplex.NodeID{{1}, {2}, {3}, {4}}
7272
comm := NewListenerComm(nodes)
73-
conf, _, _ := testutil.DefaultTestNodeEpochConfig(t, nodes[0], comm, bb)
73+
noop := testutil.NewNoopComm(nodes)
74+
conf, _, _ := testutil.DefaultTestNodeEpochConfig(t, nodes[0], noop, bb)
7475
conf.ReplicationEnabled = true
7576

7677
e, err := simplex.NewEpoch(conf)
@@ -102,6 +103,7 @@ func TestReplicationRequestNotarizations(t *testing.T) {
102103
},
103104
}
104105

106+
e.Comm = comm
105107
err = e.HandleMessage(req, nodes[1])
106108
require.NoError(t, err)
107109

0 commit comments

Comments
 (0)