Skip to content

Commit

Permalink
remove NotSame assertion
Browse files Browse the repository at this point in the history
NotSame checks pointer inequality; the input was not a pointer. This
caused a failure once testify was updated to explicitly catch and throw
an error in this case.
  • Loading branch information
jordanschalm committed Dec 4, 2024
1 parent a037ca3 commit 662fc0d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion model/flow/protocol_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ func TestProtocolStateEntry_Copy(t *testing.T) {
assert.Equal(t, entry, cpy)
assert.NotSame(t, entry.NextEpoch, cpy.NextEpoch)
assert.NotSame(t, entry.PreviousEpoch, cpy.PreviousEpoch)
assert.NotSame(t, entry.CurrentEpoch, cpy.CurrentEpoch)

cpy.EpochFallbackTriggered = !entry.EpochFallbackTriggered
assert.NotEqual(t, entry, cpy)
Expand Down

0 comments on commit 662fc0d

Please sign in to comment.