We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bcfd27 + 71c36cb commit bac3582Copy full SHA for bac3582
src/tests/mocks/mod.rs
@@ -92,10 +92,13 @@ impl GitHubState {
92
}
93
94
pub fn check_cancelled_workflows(&self, repo: GithubRepoName, expected_run_ids: &[u64]) {
95
- assert_eq!(
96
- &self.get_repo(&repo).lock().cancelled_workflows,
97
- expected_run_ids
98
- );
+ let mut workflows = self.get_repo(&repo).lock().cancelled_workflows.clone();
+ workflows.sort();
+
+ let mut expected = expected_run_ids.to_vec();
99
+ expected.sort();
100
101
+ assert_eq!(workflows, expected);
102
103
104
0 commit comments