Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2cb94cb

Browse files
committed
fixup! Add env create|edit integration tests
1 parent a4a9c35 commit 2cb94cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/integration/envs_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ func TestEnvsCLI(t *testing.T) {
5252

5353
t.Cleanup(func() {
5454
run(t, "coder-envs-edit-cleanup", func(t *testing.T, ctx context.Context, c *tcli.ContainerRunner){
55-
c.Run(ctx, fmt.Sprintf("coder envs rm %s --force", name)).Assert(t, tcli.Success())
55+
headlessLogin(ctx, t, c)
56+
c.Run(ctx, fmt.Sprintf("coder envs rm %s --force", name)).Assert(t)
5657
})
5758
})
5859

@@ -86,7 +87,8 @@ func TestEnvsCLI(t *testing.T) {
8687
)
8788
t.Cleanup(func() {
8889
run(t, "coder-envs-edit-cleanup", func(t *testing.T, ctx context.Context, c *tcli.ContainerRunner){
89-
c.Run(ctx, fmt.Sprintf("coder envs rm %s --force", name)).Assert(t, tcli.Success())
90+
headlessLogin(ctx, t, c)
91+
c.Run(ctx, fmt.Sprintf("coder envs rm %s --force", name)).Assert(t)
9092
})
9193
})
9294

0 commit comments

Comments
 (0)