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.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.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 from '../substrate/substrate-api';5import { IKeyringPair } from '@polkadot/types/types';6import {6import chai from 'chai';7 addToWhiteListExpectSuccess,7import chaiAsPromised from 'chai-as-promised';8 createCollectionExpectSuccess,8import privateKey from '../substrate/privateKey';9 setMintPermissionExpectSuccess,9import usingApi from '../substrate/substrate-api';10 normalizeAccountId,10import {11 waitNewBlocks,11 addToWhiteListExpectSuccess,12} from '../util/helpers';12 createCollectionExpectSuccess,1313 setMintPermissionExpectSuccess,14chai.use(chaiAsPromised);14 normalizeAccountId,15const expect = chai.expect;15 waitNewBlocks,16let Alice: IKeyringPair;16} from '../util/helpers';17let Ferdie: IKeyringPair;171818chai.use(chaiAsPromised);19before(async () => {19const expect = chai.expect;20 await usingApi(async () => {20let Alice: IKeyringPair;21 Alice = privateKey('//Alice');21let Ferdie: IKeyringPair;22 Ferdie = privateKey('//Ferdie');2223 });23before(async () => {24});24 await usingApi(async () => {2525 Alice = privateKey('//Alice');26describe('Turns off minting mode: ', () => {26 Ferdie = privateKey('//Ferdie');27 // tslint:disable-next-line: max-line-length27 });28 it('The collection owner turns off minting mode and there are minting transactions in the same block ', async () => {28});29 await usingApi(async (api) => {2930 const collectionId = await createCollectionExpectSuccess();30describe('Turns off minting mode: ', () => {31 await setMintPermissionExpectSuccess(Alice, collectionId, true);31 // tslint:disable-next-line: max-line-length32 await addToWhiteListExpectSuccess(Alice, collectionId, Ferdie.address);32 it('The collection owner turns off minting mode and there are minting transactions in the same block ', async () => {3333 await usingApi(async (api) => {34 const mintItem = api.tx.nft.createItem(collectionId, normalizeAccountId(Ferdie.address), 'NFT');34 const collectionId = await createCollectionExpectSuccess();35 const offMinting = api.tx.nft.setMintPermission(collectionId, false);35 await setMintPermissionExpectSuccess(Alice, collectionId, true);36 await Promise.all([36 await addToWhiteListExpectSuccess(Alice, collectionId, Ferdie.address);37 mintItem.signAndSend(Ferdie),3738 offMinting.signAndSend(Alice),38 const mintItem = api.tx.nft.createItem(collectionId, normalizeAccountId(Ferdie.address), 'NFT');39 ]);39 const offMinting = api.tx.nft.setMintPermission(collectionId, false);40 let itemList = false;40 await Promise.all([41 itemList = (await (api.query.nft.nftItemList(collectionId, mintItem))).toJSON() as boolean;41 mintItem.signAndSend(Ferdie),42 // tslint:disable-next-line: no-unused-expression42 offMinting.signAndSend(Alice),43 expect(itemList).to.be.null;43 ]);44 await waitNewBlocks(2);44 let itemList = false;45 });45 itemList = (await (api.query.nft.nftItemList(collectionId, mintItem))).toJSON() as boolean;46 });46 // tslint:disable-next-line: no-unused-expression47});47 expect(itemList).to.be.null;4848 await waitNewBlocks(2);49 });50 });51});52*/