Integration test: fix username/uid flake. (#2086)

This commit is contained in:
J Logan
2026-08-06 20:31:13 -07:00
committed by GitHub
parent 0d111be4c6
commit abff4183b4
@@ -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")