test(net): make retry and loader coverage deterministic
This commit is contained in:
1 parent
45ce7ef84b
commit
dc13746841
5 files changed
+96
-53
No files matched your search
+5
-16
@@ -88,21 +88,6 @@ async fn neoforge_game_versions_are_available() {
|
||||
assert!(versions.iter().any(|version| version.id == "1.21"));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
#[ignore = "hits live Mojang API"]
|
||||
async fn mojang_manifest_contains_a_known_release() {
|
||||
let manifest = net::mojang::fetch_version_manifest(&HttpClient::new())
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert!(
|
||||
manifest
|
||||
.versions
|
||||
.iter()
|
||||
.any(|version| version.id == "1.20.1")
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
#[ignore = "hits live Mojang API"]
|
||||
async fn vanilla_installer_lists_game_versions() {
|
||||
@@ -113,7 +98,11 @@ async fn vanilla_installer_lists_game_versions() {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert!(versions.iter().any(|version| version.id == "1.20.1"));
|
||||
assert!(
|
||||
versions
|
||||
.iter()
|
||||
.any(|version| version.id == "1.20.1" && version.stable)
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in new issue
Block a user