Skip to content

Commit

Permalink
Remove test for removed dcc.Down check
Browse files Browse the repository at this point in the history
  • Loading branch information
sin3point14 authored and mkaczanowski committed Dec 17, 2024
1 parent de06dac commit bd8128b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions internal/pkg/docker/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,23 +272,6 @@ func TestUpDownCompose(t *testing.T) {
require.NoError(t, err)
},
},
{
name: "simulate case where docker compose up didn't start the container",
testFn: func(t *testing.T, _ string) {
// step 1: fake docker binary to simulate docker compose up timeout (container isn't running)
err = os.WriteFile(filepath.Join(tempDir, "docker"), []byte("#!/bin/sh\nexit 0\n"), 0600)
require.NoError(t, err)

oldPath := os.Getenv("PATH")
os.Setenv("PATH", tempDir+":"+oldPath)

// step 2: with docker compose client try to start container and expect it to fail
err = dcc.Down(ctx, "s1", 0)
require.ErrorIs(t, err, ErrContainerNotRunning)

os.Setenv("PATH", oldPath)
},
},
}

for _, test := range tests {
Expand Down

0 comments on commit bd8128b

Please sign in to comment.