difftreelog
test ensure transfers are disabled during MM
in: master
1 file changed
tests/src/maintenance.seqtest.tsdiffbeforeafterboth159 // RPCs work while in maintenance159 // RPCs work while in maintenance160 expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);160 expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);161161162 // We still able to transfer funds162 // Transfers are disabled during MM163 await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;163 await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.rejected;164164165 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;