git.delta.rocks / unique-network / refs/commits / 05ae8ba1727c

difftreelog

fix tests: scheduller disabled

Igor Kozyrev2021-11-24parent: #431586d.patch.diff
in: master

2 files changed

modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth
--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -38,7 +38,7 @@
   'unique',
   'nonfungible',
   'refungible',
-  'scheduler',
+  //'scheduler',
   'charging',
 ];
 
modifiedtests/src/scheduler.test.tsdiffbeforeafterboth
before · tests/src/scheduler.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import chai from 'chai';7import chaiAsPromised from 'chai-as-promised';8import privateKey from './substrate/privateKey';9import usingApi from './substrate/substrate-api';10import {11  createItemExpectSuccess,12  createCollectionExpectSuccess,13  scheduleTransferExpectSuccess,14  setCollectionSponsorExpectSuccess,15  confirmSponsorshipExpectSuccess,16} from './util/helpers';1718chai.use(chaiAsPromised);1920describe('Integration Test scheduler base transaction', () => {21  it('User can transfer owned token with delay (scheduler)', async () => {22    await usingApi(async () => {23      const alice = privateKey('//Alice');24      const bob = privateKey('//Bob');25      // nft26      const nftCollectionId = await createCollectionExpectSuccess();27      const newNftTokenId = await createItemExpectSuccess(alice, nftCollectionId, 'NFT');28      await setCollectionSponsorExpectSuccess(nftCollectionId, alice.address);29      await confirmSponsorshipExpectSuccess(nftCollectionId);3031      await scheduleTransferExpectSuccess(nftCollectionId, newNftTokenId, alice, bob, 1, 4);32    });33  });34});
after · tests/src/scheduler.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import chai from 'chai';7import chaiAsPromised from 'chai-as-promised';8import privateKey from './substrate/privateKey';9import usingApi from './substrate/substrate-api';10import {11  createItemExpectSuccess,12  createCollectionExpectSuccess,13  scheduleTransferExpectSuccess,14  setCollectionSponsorExpectSuccess,15  confirmSponsorshipExpectSuccess,16} from './util/helpers';1718chai.use(chaiAsPromised);1920describe.skip('Integration Test scheduler base transaction', () => {21  it('User can transfer owned token with delay (scheduler)', async () => {22    await usingApi(async () => {23      const alice = privateKey('//Alice');24      const bob = privateKey('//Bob');25      // nft26      const nftCollectionId = await createCollectionExpectSuccess();27      const newNftTokenId = await createItemExpectSuccess(alice, nftCollectionId, 'NFT');28      await setCollectionSponsorExpectSuccess(nftCollectionId, alice.address);29      await confirmSponsorshipExpectSuccess(nftCollectionId);3031      await scheduleTransferExpectSuccess(nftCollectionId, newNftTokenId, alice, bob, 1, 4);32    });33  });34});