Skip to content

Commit

Permalink
Executor Test Fix (#618)
Browse files Browse the repository at this point in the history
* fix

* add 2 sec wait
  • Loading branch information
CryptoMaxPlanck authored Mar 7, 2023
1 parent 425de25 commit c114971
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions agents/agents/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit c114971

Please sign in to comment.