[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: harness: do not modify origin
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: harness: do not modify original DB when doing migration checks |
Date: |
Thu, 07 Mar 2024 18:28:03 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new b2864507b harness: do not modify original DB when doing migration
checks
b2864507b is described below
commit b2864507bbd4e27a7d74fdcdf801b8eb34dbe3c4
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Mar 7 18:28:00 2024 +0100
harness: do not modify original DB when doing migration checks
---
packages/taler-harness/src/index.ts | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/packages/taler-harness/src/index.ts
b/packages/taler-harness/src/index.ts
index 9ca297cb2..3bec1698a 100644
--- a/packages/taler-harness/src/index.ts
+++ b/packages/taler-harness/src/index.ts
@@ -25,12 +25,9 @@ import {
Duration,
HttpStatusCode,
Logger,
- MerchantApiClient,
MerchantInstanceConfig,
RegisterAccountRequest,
- TalerCorebankApiClient,
TransactionsResponse,
- addPaytoQueryParams,
decodeCrock,
generateIban,
j2s,
@@ -47,6 +44,10 @@ import {
SynchronousCryptoWorkerFactoryPlain,
WalletApiOperation,
} from "@gnu-taler/taler-wallet-core";
+import {
+ downloadExchangeInfo,
+ topupReserveWithDemobank,
+} from "@gnu-taler/taler-wallet-core/dbless";
import { deepStrictEqual } from "assert";
import fs from "fs";
import os from "os";
@@ -68,7 +69,6 @@ import {
} from "./harness/helpers.js";
import { getTestInfo, runTests } from "./integrationtests/testrunner.js";
import { lintExchangeDeployment } from "./lint.js";
-import { downloadExchangeInfo, topupReserveWithDemobank } from
"@gnu-taler/taler-wallet-core/dbless";
const logger = new Logger("taler-harness:index.ts");
@@ -227,13 +227,15 @@ advancedCli
const t: GlobalTestState = new GlobalTestState({
testDir: testRootDir,
});
- const walletDbPath = `${indir}/wallet-db.sqlite3`;
- if (!fs.existsSync(walletDbPath)) {
+ const origWalletDbPath = `${indir}/wallet-db.sqlite3`;
+ const testWalletDbPath = `${testRootDir}/wallet-testdb.sqlite3`;
+ fs.cpSync(origWalletDbPath, testWalletDbPath);
+ if (!fs.existsSync(origWalletDbPath)) {
throw new Error("wallet db to be checked does not exist");
}
const { walletClient, walletService } = await createWalletDaemonWithClient(
t,
- { name: "wallet-loaded", overrideDbPath: walletDbPath },
+ { name: "wallet-loaded", overrideDbPath: testWalletDbPath },
);
await walletService.pingUntilAvailable();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: harness: do not modify original DB when doing migration checks,
gnunet <=