test: tighten weak assertions and isolate global state

Assert the full InstanceConfig on JSON roundtrip (adds PartialEq to
the derive), verify kill signal delivery, check defaults in the
missing-config test, and take TEST_LOCK plus clear progress state in
the mrpack unsafe-path test like its siblings.
This commit is contained in:
objz committed 2026-08-24 19:15:03 +02:00
1 parent 7a6145342d
commit e99e307790
5 files changed
+30 -8

No files matched your search

+4 -1
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Constantin Bauer
// SPDX-License-Identifier: GPL-3.0-only
// core data types for an instance: what loader it uses, what version, memory
// settings, etc. this is what gets persisted to instance.json
@@ -28,7 +31,7 @@ impl fmt::Display for ModLoader {
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InstanceConfig {
pub name: String,
pub game_version: String,