Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Minor improvement to TestComposerVersion #5879

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions pkg/ddevapp/composer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ func TestComposerVersion(t *testing.T) {

app, err := ddevapp.NewApp(testDir, false)
assert.NoError(err)
app.Name = t.Name()
err = app.WriteConfig()
require.NoError(t, err)

t.Cleanup(func() {
err = app.Stop(true, false)
Expand All @@ -116,6 +113,11 @@ func TestComposerVersion(t *testing.T) {
_ = os.RemoveAll(testDir)
})

_ = app.Stop(true, false)
app.Name = t.Name()
err = app.WriteConfig()
require.NoError(t, err)

// Make sure base version (default) is Composer v2
err = app.Start()
require.NoError(t, err)
Expand Down