Skip to content
Snippets Groups Projects
Commit 7048ef7b authored by Hans Moog's avatar Hans Moog
Browse files

Feat: added initial test of disagreement

parent 3d6ba9c0
No related branches found
No related tags found
No related merge requests found
goshimmer.log 0 → 100644
+ 325314
0
View file @ 7048ef7b
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -117,6 +117,11 @@ func TestTipSelector_GetTipsToApprove(t *testing.T) { ...@@ -117,6 +117,11 @@ func TestTipSelector_GetTipsToApprove(t *testing.T) {
node1.GossipTransaction(conflictingTransaction1) node1.GossipTransaction(conflictingTransaction1)
node2.GossipTransaction(conflictingTransaction0) node2.GossipTransaction(conflictingTransaction0)
// check if nodes have different initial opinions
assert.Equal(t, node0.favoredReality, 1)
assert.Equal(t, node1.favoredReality, 2)
assert.Equal(t, node2.favoredReality, 1)
// endregion /////////////////////////////////////////////////////////////////////////////////////////////////////// // endregion ///////////////////////////////////////////////////////////////////////////////////////////////////////
// issue a few transactions // issue a few transactions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment