test: Add a better failure message to aid debugging

pull/24376/head
Carol (Nichols || Goulding) 2021-02-04 15:12:33 -05:00
parent abbd29aeeb
commit fa8594327d
1 changed files with 6 additions and 1 deletions

View File

@ -577,7 +577,12 @@ mod tests {
assert_eq!(object.location, expected_location);
assert_eq!(object.size, data.len());
assert!(object.last_modified > time_before_creation);
assert!(
object.last_modified > time_before_creation,
"object.last_modified = {}, time_before_creation = {}",
object.last_modified,
time_before_creation
);
// List with a prefix containing a partial "file name"
let mut prefix = storage.new_path();