From 490800e98220455069435bff3ea8ba0eccf4e3d4 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Tue, 25 Jul 2023 21:28:54 +0200 Subject: [PATCH] FVM flaky tests fix --- .gitignore | 1 + cmd/util/cmd/execution-state-extract/export_report.json | 6 ------ engine/execution/computation/computer/computer_test.go | 4 +++- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 cmd/util/cmd/execution-state-extract/export_report.json diff --git a/.gitignore b/.gitignore index 472cc944ee4..1be2e18a99f 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,7 @@ go.work.sum # Ledger checkpoint status files **/checkpoint_status.json +**/export_report.json # Local testing result files tps-results*.json diff --git a/cmd/util/cmd/execution-state-extract/export_report.json b/cmd/util/cmd/execution-state-extract/export_report.json deleted file mode 100644 index 4c8484e4396..00000000000 --- a/cmd/util/cmd/execution-state-extract/export_report.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "EpochCounter": 0, - "PreviousStateCommitment": "1c9f9d343cb8d4610e0b2c1eb74d6ea2f2f8aef2d666281dc22870e3efaa607b", - "CurrentStateCommitment": "1c9f9d343cb8d4610e0b2c1eb74d6ea2f2f8aef2d666281dc22870e3efaa607b", - "ReportSucceeded": true -} \ No newline at end of file diff --git a/engine/execution/computation/computer/computer_test.go b/engine/execution/computation/computer/computer_test.go index 4428f06465f..3f025fa3646 100644 --- a/engine/execution/computation/computer/computer_test.go +++ b/engine/execution/computation/computer/computer_test.go @@ -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, @@ -1271,7 +1273,7 @@ func Test_ExecutingSystemCollection(t *testing.T) { me, prov, nil, - testutil.ProtocolStateWithSourceFixture(nil), + testutil.ProtocolStateWithSourceFixture(constRandomSource), testMaxConcurrency) require.NoError(t, err)