From 4e04fc84b2907e6ea03299d88d0c93d80126be2d Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 7 Oct 2022 18:04:18 +0100 Subject: [PATCH] only prevent rollback in cypress env --- packages/server/src/api/controllers/dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/dev.js b/packages/server/src/api/controllers/dev.js index 8438175ca8..e5582be5b3 100644 --- a/packages/server/src/api/controllers/dev.js +++ b/packages/server/src/api/controllers/dev.js @@ -103,7 +103,7 @@ exports.revert = async ctx => { target: appId, }) try { - if (!env.isTest()) { + if (!env.isCypress()) { // in-memory db stalls on rollback await replication.rollback() }