git.delta.rocks / unique-network / refs/commits / 9352eae921fb

difftreelog

Revert "test: ensure transfers are disabled during MM"

Yaroslav Bolyukin2023-06-07parent: #550c75d.patch.diff
in: master
This reverts commit 59b04441b9eb96c9dc49a6ef69b62ca21b0ffd32.

1 file changed

modifiedtests/src/maintenance.seqtest.tsdiffbeforeafterboth
159 // RPCs work while in maintenance159 // RPCs work while in maintenance
160 expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);160 expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);
161161
162 // Transfers are disabled during MM162 // We still able to transfer funds
163 await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.rejected;163 await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;
164164
165 await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);165 await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
166 expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;166 expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;