mirror of
https://github.com/apple/container.git
synced 2026-08-26 18:36:44 +00:00
Integration test: fix username/uid flake. (#2086)
This commit is contained in:
@@ -29,7 +29,7 @@ struct TestCLIRunLifecycle {
|
||||
// First attempt with an invalid user — must fail.
|
||||
let failResult = try f.run([
|
||||
"run", "--rm", "--name", name, "-d",
|
||||
"--user", f.testID, // f.testID won't exist in /etc/passwd
|
||||
"--user", "u-\(f.testID)", // non-numeric, guaranteed not to exist in /etc/passwd
|
||||
image, "sleep", "infinity",
|
||||
])
|
||||
#expect(failResult.status != 0, "expected run to fail with invalid user")
|
||||
|
||||
Reference in New Issue
Block a user