From cf3e1dcb3720af907879d656424dc9c8838f36dd Mon Sep 17 00:00:00 2001 From: Hieu Vu <72878483+hieuvubk@users.noreply.github.com> Date: Thu, 24 Oct 2024 18:55:56 +0700 Subject: [PATCH] sleep --- tests/systemtests/export_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/systemtests/export_test.go b/tests/systemtests/export_test.go index a5f655dff553..b7e8e61f9e09 100644 --- a/tests/systemtests/export_test.go +++ b/tests/systemtests/export_test.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -18,6 +19,11 @@ func TestExportCmd_WithHeight(t *testing.T) { sut.StartChain(t) + // Wait 10s for producing blocks + time.Sleep(10 * time.Second) + + sut.StopChain() + testCases := []struct { name string args []string