1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00

Fix tests

This commit is contained in:
Roderick van Domburg 2021-12-26 23:51:25 +01:00
parent b4f7a9e35e
commit 059e17dca5
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451
2 changed files with 5 additions and 19 deletions

View file

@ -18,7 +18,7 @@ async fn test_connection() {
match result {
Ok(_) => panic!("Authentication succeeded despite of bad credentials."),
Err(e) => assert_eq!(e.to_string(), "Login failed with reason: Bad credentials"),
Err(e) => assert!(!e.to_string().is_empty()), // there should be some error message
}
})
.await