test: require the selected worker storage backend
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -2136,6 +2136,10 @@ mod tests {
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.expect("store winning attempt object");
|
.expect("store winning attempt object");
|
||||||
|
if let Ok(expected_backend) = std::env::var("IMAGEFORGE_TEST_EXPECT_STORAGE_BACKEND") {
|
||||||
|
assert_eq!(stale_object.backend, expected_backend);
|
||||||
|
assert_eq!(winning_object.backend, expected_backend);
|
||||||
|
}
|
||||||
|
|
||||||
let period_start = Utc::now() - chrono::Duration::hours(1);
|
let period_start = Utc::now() - chrono::Duration::hours(1);
|
||||||
let period_end = Utc::now() + chrono::Duration::days(30);
|
let period_end = Utc::now() + chrono::Duration::days(30);
|
||||||
|
|||||||
Reference in New Issue
Block a user