Make sure we reset blockchain state
This commit is contained in:
parent
54dbef2b4f
commit
7cd27cd9c8
@ -175,10 +175,14 @@ describe('OrderWatcher', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('tests with cleanup', async () => {
|
describe('tests with cleanup', async () => {
|
||||||
|
beforeEach(async () => {
|
||||||
|
await blockchainLifecycle.startAsync();
|
||||||
|
});
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
orderWatcher.unsubscribe();
|
orderWatcher.unsubscribe();
|
||||||
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
|
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
|
||||||
orderWatcher.removeOrder(orderHash);
|
orderWatcher.removeOrder(orderHash);
|
||||||
|
await blockchainLifecycle.revertAsync();
|
||||||
});
|
});
|
||||||
it('should emit orderStateInvalid when makerAddress allowance set to 0 for watched order', (done: DoneCallback) => {
|
it('should emit orderStateInvalid when makerAddress allowance set to 0 for watched order', (done: DoneCallback) => {
|
||||||
(async () => {
|
(async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user