Skip to content

Commit 542daae

Browse files
Remove import
1 parent eb5cb87 commit 542daae

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

tests/functional/resync/source/integrity.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type {
44
import { Identifiers } from "@mainsail/constants";
55
import type { Contracts } from "@mainsail/contracts";
66
import type { assert } from "@mainsail/test-runner";
7-
import { writeFileSync } from "fs";
8-
97

108
import { runDatabaseQuery, setupLegacyRestoreNode, setupRestoreNode, shutdown } from "./setup.js";
119

@@ -91,19 +89,13 @@ const computeNodeTableHashes = async (node: Contracts.Kernel.Application): Promi
9189
return tableHashes;
9290
}
9391

94-
const orderWalletsTable = async (node: Contracts.Kernel.Application, name: string): Promise<void> => {
95-
await runDatabaseQuery(node.get<string>(Identifiers.Application.Name), async (dataSource: TypeOrm.DataSource) => {
96-
return dataSource.query<TableHashes>(`SELECT * FROM public.wallets ORDER BY address;`);
97-
});
98-
}
99-
100-
const logWalletsTable = async (node: Contracts.Kernel.Application, name: string): Promise<void> => {
101-
const wallets = await runDatabaseQuery(node.get<string>(Identifiers.Application.Name), async (dataSource: TypeOrm.DataSource) => {
102-
return dataSource.query<TableHashes>(`SELECT * FROM public.wallets ORDER BY address;`);
103-
});
92+
// const logWalletsTable = async (node: Contracts.Kernel.Application, name: string): Promise<void> => {
93+
// const wallets = await runDatabaseQuery(node.get<string>(Identifiers.Application.Name), async (dataSource: TypeOrm.DataSource) => {
94+
// return dataSource.query<TableHashes>(`SELECT * FROM public.wallets ORDER BY address;`);
95+
// });
10496

105-
writeFileSync(`wallets_${name}.json`, JSON.stringify(wallets, null, 2));
106-
}
97+
// writeFileSync(`wallets_${name}.json`, JSON.stringify(wallets, null, 2));
98+
// }
10799

108100
const verifyIntegrity = async (t: typeof assert, syncNode: Contracts.Kernel.Application, restoreNode: Contracts.Kernel.Application): Promise<void> => {
109101
await patchDatabase(syncNode, restoreNode);

0 commit comments

Comments
 (0)