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.tsdiffbeforeafterboth1import { IKeyringPair } from '@polkadot/types/types';1/* broken by design2import chai from 'chai';2// substrate transactions are sequential, not parallel3import chaiAsPromised from 'chai-as-promised';3// the order of execution is indeterminate4import privateKey from '../substrate/privateKey';45import usingApi, { submitTransactionAsync } from '../substrate/substrate-api';5import { IKeyringPair } from '@polkadot/types/types';6import {6import chai from 'chai';7 createCollectionExpectSuccess,7import chaiAsPromised from 'chai-as-promised';8 createItemExpectSuccess,8import privateKey from '../substrate/privateKey';9 normalizeAccountId,9import usingApi, { submitTransactionAsync } from '../substrate/substrate-api';10 waitNewBlocks,10import {11} from '../util/helpers';11 createCollectionExpectSuccess,1212 createItemExpectSuccess,13chai.use(chaiAsPromised);13 normalizeAccountId,14const expect = chai.expect;14 waitNewBlocks,15let Alice: IKeyringPair;15} from '../util/helpers';16let Bob: IKeyringPair;1617let Ferdie: IKeyringPair;17chai.use(chaiAsPromised);1818const expect = chai.expect;19before(async () => {19let Alice: IKeyringPair;20 await usingApi(async () => {20let Bob: IKeyringPair;21 Alice = privateKey('//Alice');21let Ferdie: IKeyringPair;22 Bob = privateKey('//Bob');2223 Ferdie = privateKey('//Ferdie');23before(async () => {24 });24 await usingApi(async () => {25});25 Alice = privateKey('//Alice');2626 Bob = privateKey('//Bob');27describe('Admin vs Owner take token: ', () => {27 Ferdie = privateKey('//Ferdie');28 // tslint:disable-next-line: max-line-length28 });29 it('The collection admin burns the token and in the same block the token owner performs a transaction on it ', async () => {29});30 await usingApi(async (api) => {3031 const collectionId = await createCollectionExpectSuccess();31describe('Admin vs Owner take token: ', () => {32 const changeAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));32 // tslint:disable-next-line: max-line-length33 await submitTransactionAsync(Alice, changeAdminTx);33 it('The collection admin burns the token and in the same block the token owner performs a transaction on it ', async () => {34 const itemId = await createItemExpectSuccess(Bob, collectionId, 'NFT');34 await usingApi(async (api) => {35 //35 const collectionId = await createCollectionExpectSuccess();36 const sendItem = api.tx.nft.transfer(normalizeAccountId(Ferdie.address), collectionId, itemId, 1);36 const changeAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));37 const burnItem = api.tx.nft.burnItem(collectionId, itemId, 1);37 await submitTransactionAsync(Alice, changeAdminTx);38 await Promise.all([38 const itemId = await createItemExpectSuccess(Bob, collectionId, 'NFT');39 sendItem.signAndSend(Bob),39 //40 burnItem.signAndSend(Alice),40 const sendItem = api.tx.nft.transfer(normalizeAccountId(Ferdie.address), collectionId, itemId, 1);41 ]);41 const burnItem = api.tx.nft.burnItem(collectionId, itemId, 1);42 await waitNewBlocks(2);42 await Promise.all([43 let itemBurn = false;43 sendItem.signAndSend(Bob),44 itemBurn = (await (api.query.nft.nftItemList(collectionId, itemId))).toJSON() as boolean;44 burnItem.signAndSend(Alice),45 // tslint:disable-next-line: no-unused-expression45 ]);46 expect(itemBurn).to.be.null;46 await waitNewBlocks(2);47 await waitNewBlocks(2);47 let itemBurn = false;48 });48 itemBurn = (await (api.query.nft.nftItemList(collectionId, itemId))).toJSON() as boolean;49 });49 // tslint:disable-next-line: no-unused-expression50});50 expect(itemBurn).to.be.null;5151 await waitNewBlocks(2);52 });53 });54});55*/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.tsdiffbeforeafterboth--- a/tests/src/collision-tests/adminRightsOff.test.ts
+++ b/tests/src/collision-tests/adminRightsOff.test.ts
@@ -1,4 +1,6 @@
-/* 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';
@@ -48,5 +50,4 @@
});
});
});
-
*/
\ No newline at end of file
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