Skip to content

Commit

Permalink
Stop indexer in inabox test cleanup to suppress logs (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooselumph authored Jan 8, 2024
1 parent 1bcb6f1 commit c2b3460
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion inabox/tests/integration_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var (
mockRollup *rollupbindings.ContractMockRollup
retrievalClient clients.RetrievalClient
numConfirmations int = 3

cancel context.CancelFunc
)

func init() {
Expand Down Expand Up @@ -192,12 +194,17 @@ func setupRetrievalClient(testConfig *deploy.Config) error {
return err
}

return indexer.Index(context.Background())
var ctx context.Context
ctx, cancel = context.WithCancel(context.Background())

return indexer.Index(ctx)
}

var _ = AfterSuite(func() {
if testConfig.Environment.IsLocal() {

cancel()

fmt.Println("Stopping binaries")
testConfig.StopBinaries()

Expand Down

0 comments on commit c2b3460

Please sign in to comment.