Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Lance <[email protected]>
  • Loading branch information
2byrds committed Feb 12, 2025
1 parent d3c16fd commit 7b6891e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 2 additions & 6 deletions signify-ts-test/src/utils/resolve-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,12 @@ export class TestKeria {
offset?: number,
): TestKeria {
if (!TestKeria.instance) {
if (
testPaths === undefined
) {
if (testPaths === undefined) {
throw new Error(
"TestKeria.getInstance() called without arguments means we expected it to be initialized earlier. This must be done with great care to avoid unexpected side effects.",
);
}
} else if (
testPaths !== undefined
) {
} else if (testPaths !== undefined) {
console.warn(
"TestEnvironment.getInstance() called with arguments, but instance already exists. Overriding original config. This must be done with great care to avoid unexpected side effects.",
);
Expand Down
14 changes: 10 additions & 4 deletions signify-ts-test/test/run-workflow-bank.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ const offset = 10 * (bankNum - 1);
const refresh = args[ARG_REFRESH] ? args[ARG_REFRESH] === "true" : true;
const clean = args[ARG_CLEAN] === "true";
testPaths = TestPaths.getInstance(bankName);
const keriaAdminPort = parseInt(args[ARG_KERIA_START_PORT])+1 || 20001;
const keriaHttpPort = parseInt(args[ARG_KERIA_START_PORT])+2 || 20002;
const keriaBootPort = parseInt(args[ARG_KERIA_START_PORT])+3 || 20003;
const testKeria = TestKeria.getInstance(testPaths, keriaAdminPort, keriaHttpPort, keriaBootPort, offset);
const keriaAdminPort = parseInt(args[ARG_KERIA_START_PORT]) + 1 || 20001;
const keriaHttpPort = parseInt(args[ARG_KERIA_START_PORT]) + 2 || 20002;
const keriaBootPort = parseInt(args[ARG_KERIA_START_PORT]) + 3 || 20003;
const testKeria = TestKeria.getInstance(
testPaths,
keriaAdminPort,
keriaHttpPort,
keriaBootPort,
offset,
);

// set test data for workflow
testPaths.testUserName = bankName;
Expand Down

0 comments on commit 7b6891e

Please sign in to comment.