Skip to content

Commit a327ab2

Browse files
committed
Do not remove test directory configured with NODE_FB_TEST_TMP_DIR
1 parent 14d96ff commit a327ab2

File tree

2 files changed

+2
-2
lines changed
  • packages
    • node-firebird-driver/src/test
    • node-firebird-native-api/src/test

2 files changed

+2
-2
lines changed

packages/node-firebird-driver/src/test/tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function runCommonTests(client: Client) {
106106

107107
expect(client.isValid).toBeFalsy();
108108

109-
if (isLocal()) {
109+
if (isLocal() && !testConfig.tmpDir) {
110110
fs.rmdirSync(testConfig.tmpDir!);
111111
}
112112
});

packages/node-firebird-native-api/src/test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('node-firebird-native-api', () => {
7373

7474
dispatcher.releaseSync();
7575

76-
if (isLocal()) {
76+
if (isLocal() && !testConfig.tmpDir) {
7777
fs.rmdirSync(testConfig.tmpDir!);
7878
}
7979

0 commit comments

Comments
 (0)