test: harden threaded channel follow-ups
parent
43131dcc08
commit
b1b162fcdb
@ -1,6 +1,7 @@
|
||||
export type { FileLockHandle, FileLockOptions } from "../plugin-sdk/file-lock.js";
|
||||
export {
|
||||
acquireFileLock,
|
||||
drainFileLockStateForTest,
|
||||
resetFileLockStateForTest,
|
||||
withFileLock,
|
||||
} from "../plugin-sdk/file-lock.js";
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
import { drainSessionWriteLockStateForTest } from "../agents/session-write-lock.js";
|
||||
import { clearSessionStoreCacheForTest } from "../config/sessions/store.js";
|
||||
import { drainFileLockStateForTest } from "../infra/file-lock.js";
|
||||
|
||||
export async function cleanupSessionStateForTest(): Promise<void> {
|
||||
clearSessionStoreCacheForTest();
|
||||
await drainFileLockStateForTest();
|
||||
await drainSessionWriteLockStateForTest();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue