Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Aug 28, 2024
1 parent fc0a7f1 commit e158adf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion fee-abstraction/integration/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"os"
"path/filepath"
"sync"
"testing"

"github.com/ignite/cli/v28/ignite/pkg/cmdrunner/step"
Expand Down Expand Up @@ -49,5 +50,14 @@ func TestFeeAbstraction(t *testing.T) {
step.Workdir(app.SourcePath()),
),
)
env.Exec("waiting the chain is up", stepUp, envtest.ExecRetry())

var wg sync.WaitGroup
wg.Add(1)
go func() {
env.Exec("waiting the chain is up", stepUp, envtest.ExecRetry())
wg.Done()
}()

env.Must(app.Serve("should serve", envtest.ExecCtx(ctx)))
wg.Wait()
}

0 comments on commit e158adf

Please sign in to comment.