Fix test that did not pass when virtual was not previously built

This seems a bit hacky though because
the test needs to have `cargo` in `$PATH`
This commit is contained in:
ppom 2025-11-15 12:00:00 +01:00
commit bc0271b209
No known key found for this signature in database

View file

@ -6,6 +6,11 @@ use predicates::prelude::predicate;
#[test]
fn plugin_virtual() {
// First build reaction-plugin-virtual
Command::new("cargo")
.args(["build", "-p", "reaction-plugin-virtual"])
.unwrap();
let tmp_dir = assert_fs::TempDir::new().unwrap();
tmp_dir
.child("config.jsonnet")