difftreelog
turn off collision-tests
in: master
10 files changed
tests/src/collision-tests/admVsOwnerChanges.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/admVsOwnerChanges.test.ts
+++ b/tests/src/collision-tests/admVsOwnerChanges.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -50,3 +54,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/admVsOwnerData.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/admVsOwnerData.test.ts
+++ b/tests/src/collision-tests/admVsOwnerData.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -46,3 +50,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/admVsOwnerTake.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/admVsOwnerTake.test.ts
+++ b/tests/src/collision-tests/admVsOwnerTake.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -48,3 +52,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/adminDestroyCollection.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/adminDestroyCollection.test.ts
+++ b/tests/src/collision-tests/adminDestroyCollection.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -47,3 +51,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/adminLimitsOff.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/adminLimitsOff.test.ts
+++ b/tests/src/collision-tests/adminLimitsOff.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -63,3 +67,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/adminRightsOff.test.tsdiffbeforeafterboth1/* obsolete1/* broken by design22// substrate transactions are sequential, not parallel3// the order of execution is indeterminate43import { IKeyringPair } from '@polkadot/types/types';5import { IKeyringPair } from '@polkadot/types/types';4import BN from 'bn.js';6import BN from 'bn.js';5import chai from 'chai';7import chai from 'chai';6import chaiAsPromised from 'chai-as-promised';8import chaiAsPromised from 'chai-as-promised';7import privateKey from '../substrate/privateKey';9import privateKey from '../substrate/privateKey';8import usingApi, { submitTransactionAsync } from '../substrate/substrate-api';10import usingApi, { submitTransactionAsync } from '../substrate/substrate-api';9import {11import {10 createCollectionExpectSuccess,12 createCollectionExpectSuccess,11 normalizeAccountId,13 normalizeAccountId,12 waitNewBlocks,14 waitNewBlocks,13} from '../util/helpers';15} from '../util/helpers';141615chai.use(chaiAsPromised);17chai.use(chaiAsPromised);16const expect = chai.expect;18const expect = chai.expect;17let Alice: IKeyringPair;19let Alice: IKeyringPair;18let Bob: IKeyringPair;20let Bob: IKeyringPair;192120before(async () => {22before(async () => {21 await usingApi(async () => {23 await usingApi(async () => {22 Alice = privateKey('//Alice');24 Alice = privateKey('//Alice');23 Bob = privateKey('//Bob');25 Bob = privateKey('//Bob');24 });26 });25});27});262827describe('Deprivation of admin rights: ', () => {29describe('Deprivation of admin rights: ', () => {28 // tslint:disable-next-line: max-line-length30 // tslint:disable-next-line: max-line-length29 it('In the block, the collection admin adds a token or changes data, and the collection owner deprives the admin of rights ', async () => {31 it('In the block, the collection admin adds a token or changes data, and the collection owner deprives the admin of rights ', async () => {30 await usingApi(async (api) => {32 await usingApi(async (api) => {31 const collectionId = await createCollectionExpectSuccess();33 const collectionId = await createCollectionExpectSuccess();32 const changeAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));34 const changeAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));33 await submitTransactionAsync(Alice, changeAdminTx);35 await submitTransactionAsync(Alice, changeAdminTx);34 await waitNewBlocks(1);36 await waitNewBlocks(1);35 const args = [{ nft: ['0x31', '0x31'] }, { nft: ['0x32', '0x32'] }, { nft: ['0x33', '0x33'] }];37 const args = [{ nft: ['0x31', '0x31'] }, { nft: ['0x32', '0x32'] }, { nft: ['0x33', '0x33'] }];36 const addItemAdm = api.tx.nft.createMultipleItems(collectionId, normalizeAccountId(Bob.address), args);38 const addItemAdm = api.tx.nft.createMultipleItems(collectionId, normalizeAccountId(Bob.address), args);37 const removeAdm = api.tx.nft.removeCollectionAdmin(collectionId, normalizeAccountId(Bob.address));39 const removeAdm = api.tx.nft.removeCollectionAdmin(collectionId, normalizeAccountId(Bob.address));38 await Promise.all([40 await Promise.all([39 addItemAdm.signAndSend(Bob),41 addItemAdm.signAndSend(Bob),40 removeAdm.signAndSend(Alice),42 removeAdm.signAndSend(Alice),41 ]);43 ]);42 await waitNewBlocks(2);44 await waitNewBlocks(2);43 const itemsListIndex = await api.query.nft.itemListIndex(collectionId) as unknown as BN;45 const itemsListIndex = await api.query.nft.itemListIndex(collectionId) as unknown as BN;44 expect(itemsListIndex.toNumber()).to.be.equal(0);46 expect(itemsListIndex.toNumber()).to.be.equal(0);45 const adminList: any = (await api.query.nft.adminList(collectionId));47 const adminList: any = (await api.query.nft.adminList(collectionId));46 expect(adminList).not.to.be.contains(normalizeAccountId(Bob.address));48 expect(adminList).not.to.be.contains(normalizeAccountId(Bob.address));47 await waitNewBlocks(2);49 await waitNewBlocks(2);48 });50 });49 });51 });50});52});5153*/52*/tests/src/collision-tests/setSponsorNewOwner.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/setSponsorNewOwner.test.ts
+++ b/tests/src/collision-tests/setSponsorNewOwner.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -44,3 +48,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/sponsorPayments.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/sponsorPayments.test.ts
+++ b/tests/src/collision-tests/sponsorPayments.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -53,3 +57,4 @@
});
});
});
+*/
\ No newline at end of file
tests/src/collision-tests/tokenLimitsOff.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/tokenLimitsOff.test.ts
+++ b/tests/src/collision-tests/tokenLimitsOff.test.ts
@@ -1,4 +1,7 @@
-/* obsolete
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import BN from 'bn.js';
import chai from 'chai';
tests/src/collision-tests/turnsOffMinting.test.tsdiffbeforeafterboth--- a/tests/src/collision-tests/turnsOffMinting.test.ts
+++ b/tests/src/collision-tests/turnsOffMinting.test.ts
@@ -1,3 +1,7 @@
+/* broken by design
+// substrate transactions are sequential, not parallel
+// the order of execution is indeterminate
+
import { IKeyringPair } from '@polkadot/types/types';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
@@ -45,3 +49,4 @@
});
});
});
+*/
\ No newline at end of file