Skip to content

Commit 3bf347e

Browse files
committed
Verify crates.io error messages displayed to users
1 parent 62b86c2 commit 3bf347e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/web/releases.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,6 +2376,11 @@ mod tests {
23762376
.text_contents()
23772377
.contains("We're having issues communicating with crates.io")
23782378
);
2379+
assert!(
2380+
parse_html.text_contents().contains("501")
2381+
|| parse_html.text_contents().contains("500")
2382+
);
2383+
assert!(parse_html.text_contents().contains("crates.io returned"));
23792384
Ok(())
23802385
})
23812386
}

0 commit comments

Comments
 (0)