Skip to content

Commit

Permalink
integration tests improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored and Pantani committed Mar 28, 2024
1 parent 0e8c945 commit bf4c4eb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions integration/gex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,13 @@ func TestGexExplorer(t *testing.T) {
env = envtest.New(t)
app = env.Scaffold("github.com/ignite/mars")
servers = app.RandomizeServerPorts()
execErr = &bytes.Buffer{}
ctx, cancel = context.WithCancel(env.Ctx())
)
ensureBinary(t, ctx)

var (
output = &bytes.Buffer{}
execErr = &bytes.Buffer{}
)
steps := step.NewSteps(
step.New(
step.Stdout(output),
step.Stderr(execErr),
step.Workdir(app.SourcePath()),
step.PreExec(func() error {
Expand All @@ -105,5 +101,4 @@ func TestGexExplorer(t *testing.T) {
wg.Wait()

require.Empty(execErr.String())
require.Empty(output.String())
}

0 comments on commit bf4c4eb

Please sign in to comment.