forge
Explore
Log in

Don't you dare go Hollow

Fix two stale test expectations after the merges

Browse files at this commit

5863bbd60e261736e2e9d61b8711deae94d5ef4bAhmet Kaan GümüşParent: 3b272d4
  • test
    • fix two stale test expectations after the merges
Show full message
✅ test: fix two stale test expectations after the merges
crates/forge-web/src/ci/schedule.rsmodified+2 -2
@@ -1164,7 +1164,7 @@ run = "make"
11641164 #[tokio::test]
11651165 async fn ignored_config_keys_are_stored_as_run_warnings() {
11661166 let fx = fixture().await;
1167- let config = "[on]\npush = [\"main\"]\nschedule = true\n\n[jobs.build]\nimage = \"alpine:3\"\nrun = \"make\"\n";
1167+ let config = "[on]\npush = [\"main\"]\nwebhook = true\n\n[jobs.build]\nimage = \"alpine:3\"\nrun = \"make\"\n";
11681168 push(&fx, &[(CONFIG_PATH, config)], "refs/heads/main").await;
11691169 let run = fx
11701170 .state
@@ -1175,6 +1175,6 @@ run = "make"
11751175 .unwrap();
11761176 let warnings = fx.state.store.run_warnings(&run.id).await.unwrap();
11771177 assert_eq!(warnings.len(), 1);
1178- assert!(warnings[0].contains("`on.schedule`"), "{warnings:?}");
1178+ assert!(warnings[0].contains("`on.webhook`"), "{warnings:?}");
11791179 }
11801180 }
crates/forge-web/src/i18n/misc.rsmodified+2 -2
@@ -822,8 +822,8 @@ mod tests {
822822 "review requested by tahinli"
823823 );
824824 assert_eq!(
825- activity_line(Lang::Tr, K::VerbReviewRequested, None),
826- "İnceleme istendi"
825+ activity_line(Lang::Tr, K::VerbReviewRequested, Some("tahinli")),
826+ "tahinli tarafından inceleme istendi"
827827 );
828828 }
829829