mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-10 12:07:09 +02:00
Merge branch 'codex/hermes-qualification' into codex/hermes-release-qualification
* codex/hermes-qualification: test: separate cold route setup and bound backup integration cases
This commit is contained in:
commit
740975bb59
2 files changed
+12
-5
No files matched your search
@@ -74,7 +74,9 @@ describe("createBufferedTextFileWriter", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describeEmbeddedPostgres("runDatabaseBackup", () => {
|
||||
// Each case starts a real PostgreSQL instance. Use the same bounded deadline
|
||||
// as the existing backup integration cases, including newly added cases.
|
||||
describeEmbeddedPostgres("runDatabaseBackup", { timeout: 30_000 }, () => {
|
||||
it("preserves identity generation, sequence options and progress in JavaScript backups", async () => {
|
||||
const source = await createTempDatabase();
|
||||
const target = await createSiblingDatabase(source, "identity_restore_target");
|
||||
|
||||
@@ -173,11 +173,10 @@ const externalAdapter: ServerAdapterModule = {
|
||||
|
||||
const missingAdapterType = "missing_adapter_validation_test";
|
||||
|
||||
let agentRoutes: typeof import("../routes/agents.js").agentRoutes;
|
||||
let errorHandler: typeof import("../middleware/index.js").errorHandler;
|
||||
|
||||
async function createApp(actorOverride: Record<string, unknown> = {}) {
|
||||
const [{ agentRoutes }, { errorHandler }] = await Promise.all([
|
||||
vi.importActual<typeof import("../routes/agents.js")>("../routes/agents.js"),
|
||||
vi.importActual<typeof import("../middleware/index.js")>("../middleware/index.js"),
|
||||
]);
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use((req, _res, next) => {
|
||||
@@ -332,6 +331,12 @@ describe("agent routes adapter validation", () => {
|
||||
}));
|
||||
await unregisterTestAdapter("external_test");
|
||||
await unregisterTestAdapter(missingAdapterType);
|
||||
// These imports follow resetModules and the per-test mocks. Keep their cold
|
||||
// setup cost in the existing 30-second hook, outside the request deadline.
|
||||
[{ agentRoutes }, { errorHandler }] = await Promise.all([
|
||||
vi.importActual<typeof import("../routes/agents.js")>("../routes/agents.js"),
|
||||
vi.importActual<typeof import("../middleware/index.js")>("../middleware/index.js"),
|
||||
]);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in new issue
Block a user