Skip to content

Commit e2840eb

Browse files
committed
test: e2e-identity: use unique user and device IDs in every test case
Otherwise we run into race conditions with parallel tests and a single test-wire-server process.
1 parent a9bdfd4 commit e2840eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

e2e-identity/tests/e2e.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,12 @@ async fn prepare_pki_env_and_config(
241241

242242
ctx_store_http_client(&dns_mappings);
243243

244-
let client_id = ClientId::try_new("e1299f1d-180e-4339-b7c7-2715e1e6897f", 1234, "wire.localhost").unwrap();
244+
let client_id = ClientId::try_new(
245+
uuid::Uuid::new_v4().to_string(),
246+
rand::random::<u64>(),
247+
"wire.localhost",
248+
)
249+
.unwrap();
245250
let device_id = format!("{:x}", client_id.device_id);
246251

247252
let config = X509CredentialConfiguration {

0 commit comments

Comments
 (0)