Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 768bf49

Browse files
committedAug 26, 2022
wip: broken tests
1 parent c7516df commit 768bf49

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"test-lp-staking-v2": "mocha --parallel --require test/lp_staking_v2/_hooks.mjs test/lp_staking_v2",
2222
"test-lp": "mocha --parallel --require test/lp/_hooks.mjs test/lp",
2323
"test-lp-stable": "mocha --parallel --require test/lp_stable/_hooks.mjs test/lp_stable",
24+
"test-lp-stable-new-pools-with-different-decimals": "mocha --parallel --require test/lp_stable/new_pools_with_different_decimals/_hooks.mjs test/lp_stable/new_pools_with_different_decimals",
2425
"test-lp-stable-decimals-migration": "mocha --parallel --require test/lp_stable/lp_stable_decimals_migration/_hooks.mjs test/lp_stable/lp_stable_decimals_migration",
2526
"test-lp-to-lp-stable-migration": "mocha --parallel --require test/lp_stable/lp_to_lp_stable_migration/_hooks.mjs test/lp_stable/lp_to_lp_stable_migration",
2627
"test-referral": "mocha --parallel --require test/referral/_hooks.mjs test/referral",

‎test/lp_stable/getOneTkn.mjs

-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ describe('lp_stable: getOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
2222
const usdtAmount = 1e8;
2323
const exchResult = 0;
2424
const notUsed = 0;
25-
const delay = 2;
2625

2726
const expectedOutAmAmt = 1e8;
2827
const expectedOutPrAmt = 0;
@@ -47,9 +46,6 @@ describe('lp_stable: getOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
4746
chainId,
4847
}, this.accounts.user1);
4948
await api.transactions.broadcast(putOneTkn, {});
50-
const { height } = await ni.waitForTx(putOneTkn.id, { apiBase });
51-
52-
await ni.waitForHeight(height + delay, { apiBase });
5349

5450
const getOneTkn = invokeScript({
5551
dApp: lpStable,

‎test/lp_stable/new_pools_with_different_decimals/getOneTkn.mjs

-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ describe('lp_stable: getOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
2323

2424
const exchResult = 0;
2525
const notUsed = 0;
26-
const delay = 2;
2726

2827
const expectedOutAmAmt = 1e10;
2928
const expectedOutPrAmt = 0;
@@ -48,9 +47,6 @@ describe('lp_stable: getOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
4847
chainId,
4948
}, this.accounts.user1);
5049
await api.transactions.broadcast(putOneTkn, {});
51-
const { height } = await ni.waitForTx(putOneTkn.id, { apiBase });
52-
53-
await ni.waitForHeight(height + delay, { apiBase });
5450

5551
const getOneTkn = invokeScript({
5652
dApp: lpStable,
@@ -101,7 +97,6 @@ describe('lp_stable: getOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
10197

10298
expect(stateChanges.invokes.map((item) => [item.dApp, item.call.function]))
10399
.to.deep.include.members([
104-
[address(this.accounts.lpStableAddon, chainId), 'ensureCanGetOneTkn'],
105100
[address(this.accounts.gwxReward, chainId), 'calcD'],
106101
[address(this.accounts.gwxReward, chainId), 'calcD'],
107102
[address(this.accounts.factoryV2, chainId), 'burn'],

‎test/lp_stable/new_pools_with_different_decimals/putOneTkn.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ describe('lp_stable: putOneTkn.mjs', /** @this {MochaSuiteModified} */() => {
7777

7878
expect(stateChanges.invokes.map((item) => [item.dApp, item.call.function]))
7979
.to.deep.include.members([
80-
[address(this.accounts.lpStableAddon, chainId), 'ensureCanPutOneTkn'],
8180
[address(this.accounts.gwxReward, chainId), 'calcD'],
8281
[address(this.accounts.gwxReward, chainId), 'calcD'],
8382
[address(this.accounts.factoryV2, chainId), 'emit'],

0 commit comments

Comments
 (0)
Please sign in to comment.