fix: assert retained checkout outcome diagnostics
This commit is contained in:
@@ -37791,10 +37791,15 @@ mod tests {
|
|||||||
)))
|
)))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
let error = write.await.unwrap().unwrap_err();
|
||||||
assert!(matches!(
|
assert!(matches!(
|
||||||
write.await.unwrap(),
|
error.classification_source(),
|
||||||
Err(workdir::WorkdirError::OutcomeUnknown(_))
|
workdir::WorkdirError::OutcomeUnknown(_)
|
||||||
));
|
));
|
||||||
|
assert_eq!(
|
||||||
|
error.failure_reason(),
|
||||||
|
lose_response.then_some(workdir::WorkdirFailureReason::ProviderUnavailable)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user