From c1149719e515197f54cb5b5390566b36bcb71cc7 Mon Sep 17 00:00:00 2001 From: Max Planck <99688618+CryptoMaxPlanck@users.noreply.github.com> Date: Tue, 7 Mar 2023 16:34:31 -0500 Subject: [PATCH] Executor Test Fix (#618) * fix * add 2 sec wait --- agents/agents/executor/executor_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/agents/agents/executor/executor_test.go b/agents/agents/executor/executor_test.go index 1ee03736fc..a362190c3f 100644 --- a/agents/agents/executor/executor_test.go +++ b/agents/agents/executor/executor_test.go @@ -93,13 +93,13 @@ func (e *ExecutorSuite) TestExecutor() { scribeClient := client.NewEmbeddedScribe("sqlite", e.DBPath) go func() { - scribeErr := scribeClient.Start(e.GetSuiteContext()) + scribeErr := scribeClient.Start(e.GetTestContext()) e.Nil(scribeErr) }() // Start the Scribe. go func() { - _ = scribe.Start(e.GetSuiteContext()) + _ = scribe.Start(e.GetTestContext()) }() excCfg := executorCfg.Config{ @@ -136,7 +136,7 @@ func (e *ExecutorSuite) TestExecutor() { // Start the executor. go func() { - excErr := exc.Start(e.GetSuiteContext()) + excErr := exc.Start(e.GetTestContext()) if !testDone { e.Nil(excErr) } @@ -459,6 +459,7 @@ func (e *ExecutorSuite) TestMerkleInsert() { newRoot, err = exec.GetMerkleTree(chainID, destination).Root(2) if err != nil { + time.Sleep(2 * time.Second) return false }