Skip to content

Commit 7d82b95

Browse files
committed
# This is a combination of 2 commits.
# This is the 1st commit message: Verify crates.io error messages are displayed to users # This is the commit message #2: #Expand test
1 parent 62b86c2 commit 7d82b95

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)