Skip to content

Commit 72d3ff1

Browse files
committed
purge container
1 parent 12389d8 commit 72d3ff1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/agent_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,10 @@ func TestAgent_ReconnectingPTYContainer(t *testing.T) {
17901790
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
17911791
})
17921792
require.NoError(t, err, "Could not start container")
1793+
t.Cleanup(func() {
1794+
err := pool.Purge(ct)
1795+
require.NoError(t, err, "Could not stop container")
1796+
})
17931797
// Wait for container to start
17941798
require.Eventually(t, func() bool {
17951799
ct, ok := pool.ContainerByName(ct.Container.Name)

0 commit comments

Comments
 (0)