upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-12-12 15:19:40 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-12-13 12:37:20 +0000
commitf294a249307accc0f173917989ce27c27f0c6792 (patch)
tree04df321a504ff1108f6c06e69a703577051d7dde /tests
parentaeb164a6890a433828739bde23d3477b78e532a4 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/git_remote_nostr/push.rs6
1 files changed, 3 insertions, 3 deletions
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
1179 // HashSet::<String>::from_iter(vec![ 1179 // HashSet::<String>::from_iter(vec![
1180 // "merge-commit-id".to_string(), 1180 // "merge-commit-id".to_string(),
1181 // "6bd4f54bdf6a9ef2ec09e88e7a8d05376b0c1ff4".to_string(), 1181 // "6bd4f54bdf6a9ef2ec09e88e7a8d05376b0c1ff4".to_string(),
1182 // "eb5d67886abad23c259ebd684c2bba233f9ed3d1".to_string(), 1182 // "f1d302586abad23c259ebd684c2bba233f9ed3d1".to_string(),
1183 // ]), 1183 // ]),
1184 HashSet::from_iter( 1184 HashSet::from_iter(
1185 [ 1185 [
@@ -1292,7 +1292,7 @@ async fn push_2_commits_to_existing_proposal() -> Result<()> {
1292 1292
1293 assert_eq!( 1293 assert_eq!(
1294 output, 1294 output,
1295 format!(" eb5d678..7de5e41 {branch_name} -> {branch_name}\r\n").as_str(), 1295 format!(" 2d1b467..9d83ff4 {branch_name} -> {branch_name}\r\n").as_str(),
1296 ); 1296 );
1297 1297
1298 let new_events = r55 1298 let new_events = r55
@@ -1447,7 +1447,7 @@ async fn force_push_creates_proposal_revision() -> Result<()> {
1447 1447
1448 assert_eq!( 1448 assert_eq!(
1449 output, 1449 output,
1450 format!(" + eb5d678...8a296c8 {branch_name} -> {branch_name} (forced update)\r\n").as_str(), 1450 format!(" + 2d1b467...ead85e0 {branch_name} -> {branch_name} (forced update)\r\n").as_str(),
1451 ); 1451 );
1452 1452
1453 let new_events = r55 1453 let new_events = r55