From abff4183b44fc246e8b019163999130a92f6cbae Mon Sep 17 00:00:00 2001 From: J Logan Date: Thu, 6 Aug 2026 20:31:13 -0700 Subject: [PATCH] Integration test: fix username/uid flake. (#2086) --- Tests/IntegrationTests/Run/TestCLIRunLifecycle.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/IntegrationTests/Run/TestCLIRunLifecycle.swift b/Tests/IntegrationTests/Run/TestCLIRunLifecycle.swift index 720d885d..ce7cc619 100644 --- a/Tests/IntegrationTests/Run/TestCLIRunLifecycle.swift +++ b/Tests/IntegrationTests/Run/TestCLIRunLifecycle.swift @@ -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")