Skip to content

Commit

Permalink
Merge #4581
Browse files Browse the repository at this point in the history
4581: Make tests less flaky r=janezpodhostnik a=janezpodhostnik

The problem is that EpochCommit event is of nondeterministic byte size. This is because of the changes to the random.

Co-authored-by: Janez Podhostnik <[email protected]>
  • Loading branch information
bors[bot] and janezpodhostnik authored Jul 27, 2023
2 parents 3f3da35 + 4f572a2 commit 86d1724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ go.work.sum

# Ledger checkpoint status files
**/checkpoint_status.json
**/export_report.json

# Local testing result files
tps-results*.json
4 changes: 3 additions & 1 deletion engine/execution/computation/computer/computer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,8 @@ func Test_ExecutingSystemCollection(t *testing.T) {
me.On("SignFunc", mock.Anything, mock.Anything, mock.Anything).
Return(nil, nil)

constRandomSource := make([]byte, 32)

exe, err := computer.NewBlockComputer(
vm,
execCtx,
Expand All @@ -1271,7 +1273,7 @@ func Test_ExecutingSystemCollection(t *testing.T) {
me,
prov,
nil,
testutil.ProtocolStateWithSourceFixture(nil),
testutil.ProtocolStateWithSourceFixture(constRandomSource),
testMaxConcurrency)
require.NoError(t, err)

Expand Down

0 comments on commit 86d1724

Please sign in to comment.