Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/CLITests/Subcommands/Build/CLIBuilderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ extension TestCLIBuildBase {
try self.build(tag: imageName, tempDir: tempDir)
#expect(try self.inspectImage(imageName) == imageName, "expected to have successfully built \(imageName)")
// Check if the image we built is actually in the image store, and can be used.
try self.doLongRun(name: containerName, image: imageName)
try self.doLongRun(name: containerName, image: imageName, autoRemove: true)
defer {
try? self.doStop(name: containerName)
}
Expand Down
4 changes: 3 additions & 1 deletion Tests/CLITests/Subcommands/Networks/TestCLINetwork.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class TestCLINetwork: CLITest {
name: name,
image: "docker.io/library/python:alpine",
args: ["--network", name],
containerArgs: ["python3", "-m", "http.server", "--bind", "0.0.0.0", "\(port)"])
containerArgs: ["python3", "-m", "http.server", "--bind", "0.0.0.0", "\(port)"],
autoRemove: true,
)
defer {
try? doStop(name: name)
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/CLITests/Subcommands/Run/TestCLIRunLifecycle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ class TestCLIRunLifecycle: CLITest {
name,
]
#expect(throws: CLIError.self, "expect container to fail with invalid user") {
try self.doLongRun(name: name, args: badArgs)
try self.doLongRun(name: name, args: badArgs, autoRemove: true)
}

// try to create a container with the same name but no user that should succeed
#expect(throws: Never.self, "expected container run to succeed") {
try self.doLongRun(name: name, args: [])
try self.doLongRun(name: name, args: [], autoRemove: true)
defer {
try? self.doStop(name: name)
}
Expand Down
Loading