mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
Merge pull request #10457 from dotCooCoo/fix/heavy-filter-shortcut-test-race
Tests: hold the clock still in the heavy filter shortcut test
This commit is contained in:
1 file changed
+3
@@ -1838,6 +1838,9 @@ fn a_heavy_filter_plugin_runs_from_its_shortcut_as_from_its_menu_item() {
|
||||
// the key is still running when Cancel stops it, however long the frames take.
|
||||
let jobs = std::sync::Arc::new(craft::host::ManualJobs::new());
|
||||
app.host = std::sync::Arc::new(craft::host::Host::builder(app.host.app().clone()).i18n(crate::i18n::shared()).jobs(jobs).build());
|
||||
// The clock stands still: the run's progress window, which opens once the run is old enough
|
||||
// and takes the keys, stays closed however slowly the frames run.
|
||||
app.now_override = Some(0.0);
|
||||
app.session.allow_plugin_grants_from_requests();
|
||||
app.session.execute("shape.rectangle", &json!({"x": 10, "y": 10, "width": 20, "height": 20})).unwrap();
|
||||
let (at_once, asks) = ("test.UI.heavy_filter-at-once", "test.UI.heavy_filter-asks");
|
||||
|
||||
Reference in new issue
Block a user