From c320b5c69e74755a6efd4075ff01d4524ad6a4bf Mon Sep 17 00:00:00 2001 From: Benjamin Carlsson Date: Wed, 11 Nov 2026 07:02:47 +0000 Subject: [PATCH] Label seed arguments in the model-facing ID recovery test (#60748) GitOrigin-RevId: 6cf0c880995afbd51376801b4d80c0db41bc24d8 --- codex-rs/utils/model-facing-id/tests/generator.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codex-rs/utils/model-facing-id/tests/generator.rs b/codex-rs/utils/model-facing-id/tests/generator.rs index a6fd1e2de9..da1e1e667a 100644 --- a/codex-rs/utils/model-facing-id/tests/generator.rs +++ b/codex-rs/utils/model-facing-id/tests/generator.rs @@ -37,13 +37,15 @@ fn persisted_ids_keep_the_allocation_fields_separate() -> Result<(), serde_json: #[test] fn an_allocated_id_recovers_the_next_value_without_a_generator_snapshot() { - let mut original = ModelFacingIdGenerator::starting_at(42, "item", /*next_ordinal*/ 999); + let mut original = + ModelFacingIdGenerator::starting_at(/*seed*/ 42, "item", /*next_ordinal*/ 999); let last = original.fetch_next(); let recorded = serde_json::to_value(&last).unwrap(); assert_eq!(recorded["ordinal"], 999); assert_eq!(original.next_ordinal(), 1_000); let last: ModelFacingId = serde_json::from_value(recorded).unwrap(); - let mut resumed = ModelFacingIdGenerator::starting_at(42, "item", last.ordinal() + 1); + let mut resumed = + ModelFacingIdGenerator::starting_at(/*seed*/ 42, "item", last.ordinal() + 1); assert_eq!(resumed.fetch_next(), original.fetch_next()); }