Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes 'should be at a height higher than' test #181

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions tests/01_02_51-post_wasabi_fed_pubkeys_fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const { assertContractCallFails, assertContractCallReturnsWithCallback } = requi
const expect = require('chai').expect;
const { assertIsPublicKey } = require('../lib/assertions/misc');
const { KEY_TYPE_BTC } = require('../lib/constants/federation-constants');
const CustomError = require('../lib/CustomError');
const { getBridge } = require('../lib/bridge-provider');
const { getRskTransactionHelper } = require('../lib/rsk-tx-helper-provider');

Expand All @@ -14,25 +13,13 @@ let fedChangeAddress;
let bridge;

describe('Multiple federation member keys test after fork', () => {

const ACTIVATION_BLOCK = Runners.common.forks.wasabi100.activationHeight;

before(async () => {
rskTxHelper = getRskTransactionHelper();
fedChangeAddress = await rskTxHelper.importAccount(FEDERATION_CHANGE_PK);
bridge = getBridge(rskTxHelper.getClient());
});

it(`should be at a height higher than ${ACTIVATION_BLOCK}`, async () => {
try{
const blockNum = await rskTxHelper.getBlockNumber();
expect(blockNum > ACTIVATION_BLOCK).to.be.true;
}
catch (err) {
throw new CustomError('Activation block height failure', err);
}
});

it('method getFederatorPublicKey should NOT work', () => {
return assertContractCallFails(bridge.methods.getFederatorPublicKey(0));
});
Expand Down
Loading