Skip to content

Commit 67835be

Browse files
committed
Assert sha and parent_shas have not changed for completed try
1 parent 93eb572 commit 67835be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

database/src/pool.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,16 @@ mod tests {
632632
.find(|req| req.status == BenchmarkRequestStatus::Completed);
633633
assert!(completed_try.is_some());
634634
assert_eq!(completed_try.unwrap().pr(), Some(&pr));
635+
assert_eq!(completed_try.unwrap().tag(), Some("sha-2"));
636+
assert_eq!(completed_try.unwrap().parent_sha(), Some("p-sha-1"));
635637

636638
let artifacts_ready_try = requests
637639
.iter()
638640
.find(|req| req.status == BenchmarkRequestStatus::ArtifactsReady);
639641
assert!(artifacts_ready_try.is_some());
640642
assert_eq!(artifacts_ready_try.unwrap().pr(), Some(&pr));
643+
assert_eq!(artifacts_ready_try.unwrap().tag(), Some("foo"));
644+
assert_eq!(artifacts_ready_try.unwrap().parent_sha(), Some("bar"));
641645

642646
Ok(ctx)
643647
})

0 commit comments

Comments
 (0)