mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-21 18:11:58 +01:00
Merge pull request #2366 from storytold/perf/2218-ipc
ipc: consolidate integration tests and preserve discovery isolation
This commit is contained in:
14 files changed
+14
-2
No files matched your search
@@ -31,7 +31,7 @@
|
||||
|
||||
## Schemas and fixtures
|
||||
|
||||
`schemas/instance-record.schema.json` and `schemas/link-record.schema.json` describe the stored records. `tests/schemas.rs` checks that each schema and its Rust type agree, and that the stored records in `tests/fixtures/` stay valid.
|
||||
`schemas/instance-record.schema.json` and `schemas/link-record.schema.json` describe the stored records. `tests/it/schemas.rs` checks that each schema and its Rust type agree, and that the stored records in `tests/fixtures/` stay valid.
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -35,7 +35,7 @@ fn sigkill_drops_the_record() {
|
||||
let _ = std::fs::remove_dir_all(&path);
|
||||
let runtime = RuntimeDir::at(&path).unwrap();
|
||||
let exe = std::env::current_exe().unwrap();
|
||||
let child = Command::new(exe).args(["--exact", "hold_until_killed", "--test-threads=1"]).env("CRAFT_HOLD_DIR", &path).spawn().unwrap();
|
||||
let child = Command::new(exe).args(["--exact", "discovery::hold_until_killed", "--test-threads=1"]).env("CRAFT_HOLD_DIR", &path).spawn().unwrap();
|
||||
let mut guard = HoldCleanup { dir: path.clone(), child: Some(child) };
|
||||
let ready = runtime.path().join("ready");
|
||||
let deadline = Instant::now() + Duration::from_secs(10);
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,12 @@
|
||||
mod bulk;
|
||||
mod connection_limits;
|
||||
mod discovery;
|
||||
mod fetch;
|
||||
mod hub;
|
||||
mod native_roundtrip;
|
||||
mod open_payload;
|
||||
mod protocol;
|
||||
mod provider_stall;
|
||||
mod schemas;
|
||||
mod security;
|
||||
mod watch;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user