mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-27 16:49:15 +01:00
Hold the language lock in the anchor picker test
The test draws the UI, and the i18n tests switch the process-wide language to ones the installed fonts cannot draw, which made the Windows CI panic on a Japanese glyph. It now takes TEST_LANGUAGE like the other tests that draw the UI.
This commit is contained in:
1 parent
9f4818b240
commit
42c2f31483
1 file changed
+2
@@ -2375,6 +2375,8 @@ mod mask_anchor_label_tests {
|
||||
|
||||
#[test]
|
||||
fn inherited_effect_pickers_hide_unrecorded_source_set_anchors() {
|
||||
// The harness draws the UI, and the i18n tests switch the process-wide language to ones its fonts cannot draw
|
||||
let _language = crate::i18n::TEST_LANGUAGE.lock().unwrap_or_else(std::sync::PoisonError::into_inner);
|
||||
let mesh = texturecraft_engine::geom::primitives::material_ball();
|
||||
let mut session = texturecraft_engine::Session::new_project("test", mesh, "builtin:material_ball", None, 256).unwrap();
|
||||
let lower = execute(&mut session, "layer.add.fill", &Value::Null).unwrap()["layer"].as_u64().unwrap();
|
||||
|
||||
Reference in new issue
Block a user