Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
feat: make test works without fallback (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
  • Loading branch information
Konstantin Shuplenkov and shumkov authored Dec 29, 2020
1 parent cbd3625 commit b35aefb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/functional/platform/Identity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ describe('Platform', () => {
await waitForBalanceToChange(walletAccount);
});

it.skip('should fail to create an identity if instantLock is not valid', async () => {
it('should fail to create an identity if instantLock is not valid', async function it() {
if (process.env.NETWORK === 'regtest') {
this.skip('instant lock quorum is not active');
}

const {
transaction,
privateKey,
Expand Down Expand Up @@ -133,8 +137,7 @@ describe('Platform', () => {
await client.getDAPIClient().core.broadcastTransaction(transaction.toBuffer());
await waitForBlocks(client.getDAPIClient(), 1);

const instantLock = createFakeInstantLock(transaction.hash);
const assetLockProof = await dpp.identity.createInstantAssetLockProof(instantLock);
const assetLockProof = await createAssetLockProof(client.platform, transaction);

const duplicateIdentity = dpp.identity.create(
transaction,
Expand Down

0 comments on commit b35aefb

Please sign in to comment.