From f294a249307accc0f173917989ce27c27f0c6792 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 12 Dec 2024 15:19:40 +0000 Subject: test: deterministic commit timestamps in test PRs now that the remote helper uses the commit author timestamp to determine if commit was applied from a proposal, the timestamps in the test proposal can no longer be identical. this makes them deterministically different based on the file name --- tests/git_remote_nostr/push.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/git_remote_nostr') diff --git a/tests/git_remote_nostr/push.rs b/tests/git_remote_nostr/push.rs index e5d1b13..a8ea0ac 100644 --- a/tests/git_remote_nostr/push.rs +++ b/tests/git_remote_nostr/push.rs @@ -1179,7 +1179,7 @@ async fn proposal_fast_forward_merge_commits_pushed_to_main_leads_to_status_even // HashSet::::from_iter(vec![ // "merge-commit-id".to_string(), // "6bd4f54bdf6a9ef2ec09e88e7a8d05376b0c1ff4".to_string(), - // "eb5d67886abad23c259ebd684c2bba233f9ed3d1".to_string(), + // "f1d302586abad23c259ebd684c2bba233f9ed3d1".to_string(), // ]), HashSet::from_iter( [ @@ -1292,7 +1292,7 @@ async fn push_2_commits_to_existing_proposal() -> Result<()> { assert_eq!( output, - format!(" eb5d678..7de5e41 {branch_name} -> {branch_name}\r\n").as_str(), + format!(" 2d1b467..9d83ff4 {branch_name} -> {branch_name}\r\n").as_str(), ); let new_events = r55 @@ -1447,7 +1447,7 @@ async fn force_push_creates_proposal_revision() -> Result<()> { assert_eq!( output, - format!(" + eb5d678...8a296c8 {branch_name} -> {branch_name} (forced update)\r\n").as_str(), + format!(" + 2d1b467...ead85e0 {branch_name} -> {branch_name} (forced update)\r\n").as_str(), ); let new_events = r55 -- cgit v1.2.3