Fix two stale test expectations after the merges
Browse files at this commit5863bbd60e261736e2e9d61b8711deae94d5ef4bParent: 3b272d4- test
- fix two stale test expectations after the merges
2 changed files +4 -4
crates/forge-web/src/ci/schedule.rsmodified+2 -2
| @@ -1164,7 +1164,7 @@ run = "make" | |||
| 1164 | #[tokio::test] | 1164 | #[tokio::test] |
| 1165 | async fn ignored_config_keys_are_stored_as_run_warnings() { | 1165 | async fn ignored_config_keys_are_stored_as_run_warnings() { |
| 1166 | let fx = fixture().await; | 1166 | 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"; |
| 1168 | push(&fx, &[(CONFIG_PATH, config)], "refs/heads/main").await; | 1168 | push(&fx, &[(CONFIG_PATH, config)], "refs/heads/main").await; |
| 1169 | let run = fx | 1169 | let run = fx |
| 1170 | .state | 1170 | .state |
| @@ -1175,6 +1175,6 @@ run = "make" | |||
| 1175 | .unwrap(); | 1175 | .unwrap(); |
| 1176 | let warnings = fx.state.store.run_warnings(&run.id).await.unwrap(); | 1176 | let warnings = fx.state.store.run_warnings(&run.id).await.unwrap(); |
| 1177 | assert_eq!(warnings.len(), 1); | 1177 | assert_eq!(warnings.len(), 1); |
| 1178 | - assert!(warnings[0].contains("`on.schedule`"), "{warnings:?}"); | 1178 | + assert!(warnings[0].contains("`on.webhook`"), "{warnings:?}"); |
| 1179 | } | 1179 | } |
| 1180 | } | 1180 | } |
crates/forge-web/src/i18n/misc.rsmodified+2 -2
| @@ -822,8 +822,8 @@ mod tests { | |||
| 822 | "review requested by tahinli" | 822 | "review requested by tahinli" |
| 823 | ); | 823 | ); |
| 824 | assert_eq!( | 824 | assert_eq!( |
| 825 | - activity_line(Lang::Tr, K::VerbReviewRequested, None), | 825 | + activity_line(Lang::Tr, K::VerbReviewRequested, Some("tahinli")), |
| 826 | - "İnceleme istendi" | 826 | + "tahinli tarafından inceleme istendi" |
| 827 | ); | 827 | ); |
| 828 | } | 828 | } |
| 829 | 829 | ||