Skip to content

Commit

Permalink
Merge pull request near#194 from near/serhii/kill-process
Browse files Browse the repository at this point in the history
Kill all sandbox processes
  • Loading branch information
ailisp authored Sep 15, 2022
2 parents c5dafbe + d3137cb commit a041582
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion __tests__/01.basic-transactions.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.beforeEach(async t => {
t.context.accounts = {root, contract, ali};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
// Stop Sandbox server
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/02.patch-state.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (getNetworkFromEnv() === 'sandbox') {
t.context.accounts = {root, contract, ali};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/03.single-use-access-keys-with-linkdrop.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test.beforeEach(async t => {
t.context.accounts = {root, linkdrop};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test.beforeEach(async t => {
t.context.accounts = {root, ft, defi, ali};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/05.spoon-contract-to-sandbox.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.beforeEach(async t => {
t.context.worker = await Worker.init();
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/06.init-config.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (getNetworkFromEnv() === 'testnet') {
});
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/07.resue-worker.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test.before(async t => {
t.context.accounts = {root, contract, ali};
});

test.after(async t => {
test.after.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test.beforeEach(async t => {
t.context.accounts = {root, contract, ali};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
// Stop Sandbox server
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
Expand Down
2 changes: 1 addition & 1 deletion packages/js/__tests__/account.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (getNetworkFromEnv() === 'sandbox') {
t.context.accounts = {root};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/js/__tests__/record-builder.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (getNetworkFromEnv() === 'sandbox') {
t.context.accounts = {root, contract, ali};
});

test.afterEach(async t => {
test.afterEach.always(async t => {
await t.context.worker.tearDown().catch(error => {
console.log('Failed to tear down the worker:', error);
});
Expand Down

0 comments on commit a041582

Please sign in to comment.