Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jun 28, 2024
1 parent fb62b20 commit 711f316
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 27 deletions.
33 changes: 8 additions & 25 deletions examples/randomness/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/randomness/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function getTests(randomnessCanister: ActorSubclass<_SERVICE>): Test {
}

expect(globalResults.size).toBe(5);
});
}, 20_000);

please('dfx deploy', async () => {
execSync('dfx deploy --upgrade-unchanged');
Expand Down Expand Up @@ -70,6 +70,6 @@ export function getTests(randomnessCanister: ActorSubclass<_SERVICE>): Test {
}

expect(globalResults.size).toBe(10);
});
}, 20_000);
};
}
6 changes: 6 additions & 0 deletions examples/sqlite_drizzle/test/pretest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { execSync } from 'child_process';

async function pretest() {
// TODO replace with standard solution once class based is merged in
execSync(`cd ../sqlite && npm install`);
if (process.env.AZLE_END_TO_END_TEST_LINK_AZLE !== 'false') {
execSync(`cd ../sqlite && npm link azle`);
}

execSync(`dfx canister uninstall-code sqlite_drizzle || true`, {
stdio: 'inherit'
});
Expand Down
5 changes: 5 additions & 0 deletions examples/sqlite_typeorm/test/pretest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { execSync } from 'child_process';

async function pretest() {
// TODO replace with standard solution once class based is merged in
execSync(`cd ../sqlite && npm install`);
if (process.env.AZLE_END_TO_END_TEST_LINK_AZLE !== 'false') {
execSync(`cd ../sqlite && npm link azle`);
}
execSync(`dfx canister uninstall-code sqlite_typeorm || true`, {
stdio: 'inherit'
});
Expand Down

0 comments on commit 711f316

Please sign in to comment.