aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/test/exchange_wrapper_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/0x.js/test/exchange_wrapper_test.ts b/packages/0x.js/test/exchange_wrapper_test.ts
index 3e2160330..d862c347d 100644
--- a/packages/0x.js/test/exchange_wrapper_test.ts
+++ b/packages/0x.js/test/exchange_wrapper_test.ts
@@ -184,6 +184,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.fillOrKillOrderAsync(signedOrder, emptyFillableAmount, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -363,6 +364,7 @@ describe('ExchangeWrapper', () => {
return expect(zeroEx.exchange.batchFillOrdersAsync(
orderFillBatch, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -420,6 +422,7 @@ describe('ExchangeWrapper', () => {
return expect(zeroEx.exchange.fillOrdersUpToAsync(
signedOrders, emptyFillUpToAmount, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -468,6 +471,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.cancelOrderAsync(signedOrder, emptyCancelTakerTokenAmount, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderCancelAmountZero);
});
});
@@ -543,6 +547,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.batchCancelOrdersAsync(cancelBatch, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderCancelAmountZero);
});
});