From b1e4202bac22a20835049d1d39530add21fc8b3b Mon Sep 17 00:00:00 2001 From: Jacob Rothstein Date: Wed, 29 May 2024 18:04:47 -0700 Subject: [PATCH] test(conn-id): update seeded fastrand constants --- conn-id/src/lib.rs | 4 ++-- conn-id/tests/tests.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conn-id/src/lib.rs b/conn-id/src/lib.rs index 2a67e81cab..4a8463e942 100644 --- a/conn-id/src/lib.rs +++ b/conn-id/src/lib.rs @@ -91,7 +91,7 @@ impl ConnId { assert_ok!( get("/").on(&app), "ok", - "x-request-id" => "4fekClhof7" + "x-request-id" => "J4lzoPXcT5" ); assert_headers!( @@ -160,7 +160,7 @@ impl ConnId { assert_headers!( get("/").on(&app), - "x-custom-header" => "4fekClhof7" + "x-custom-header" => "J4lzoPXcT5" ); ``` */ diff --git a/conn-id/tests/tests.rs b/conn-id/tests/tests.rs index ba130a45db..96acc8fc8a 100644 --- a/conn-id/tests/tests.rs +++ b/conn-id/tests/tests.rs @@ -5,8 +5,8 @@ use uuid::Uuid; #[test] fn test_defaults() { let app = (ConnId::new().with_seed(1000), "ok"); - assert_ok!(get("/").on(&app), "ok", "x-request-id" => "4fekClhof7"); - assert_ok!(get("/").on(&app), "ok", "x-request-id" => "PAmkU1LPSe"); + assert_ok!(get("/").on(&app), "ok", "x-request-id" => "J4lzoPXcT5"); + assert_ok!(get("/").on(&app), "ok", "x-request-id" => "Sn0wUTe4EF"); assert_ok!( get("/").with_request_header("x-request-id", "inbound-id").on(&app), "ok", @@ -14,8 +14,8 @@ fn test_defaults() { ); let conn = get("/").on(&app); - assert_eq!(conn.id(), "kZTgZfbUJB"); - assert_eq!(log_formatter::conn_id(&conn, true), "kZTgZfbUJB"); + assert_eq!(conn.id(), "cnx2OnqZsR"); + assert_eq!(log_formatter::conn_id(&conn, true), "cnx2OnqZsR"); let conn = TestConn::build("get", "/", ()); assert_eq!(log_formatter::conn_id(&conn, true), "-"); @@ -56,11 +56,11 @@ fn test_no_headers() { let conn = get("/").on(&app); assert!(conn.response_headers().get("x-request-id").is_none()); - assert_eq!(conn.id(), "4fekClhof7"); + assert_eq!(conn.id(), "J4lzoPXcT5"); let conn = get("/") .with_request_header("x-request-id", "ignored") .on(&app); - assert_eq!(conn.id(), "PAmkU1LPSe"); + assert_eq!(conn.id(), "Sn0wUTe4EF"); assert!(conn.response_headers().get("x-request-id").is_none()); }