git.delta.rocks / unique-network / refs/commits / 9ddec87093e6

difftreelog

turn off collision-tests

Igor Kozyrev2021-11-08parent: #b1a1af7.patch.diff
in: master

10 files changed

modifiedtests/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
modifiedtests/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
modifiedtests/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
modifiedtests/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
modifiedtests/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
modifiedtests/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
modifiedtests/src/collision-tests/setSponsorNewOwner.test.tsdiffbeforeafterboth
1import { IKeyringPair } from '@polkadot/types/types';1/* broken by design
2import chai from 'chai';2// substrate transactions are sequential, not parallel
3import chaiAsPromised from 'chai-as-promised';3// the order of execution is indeterminate
4import privateKey from '../substrate/privateKey';4
5import usingApi from '../substrate/substrate-api';5import { IKeyringPair } from '@polkadot/types/types';
6import {6import chai from 'chai';
7 createCollectionExpectSuccess,7import chaiAsPromised from 'chai-as-promised';
8 setCollectionSponsorExpectSuccess,8import privateKey from '../substrate/privateKey';
9 waitNewBlocks,9import usingApi from '../substrate/substrate-api';
10} from '../util/helpers';10import {
1111 createCollectionExpectSuccess,
12chai.use(chaiAsPromised);12 setCollectionSponsorExpectSuccess,
13const expect = chai.expect;13 waitNewBlocks,
14let Alice: IKeyringPair;14} from '../util/helpers';
15let Bob: IKeyringPair;15
16let Ferdie: IKeyringPair;16chai.use(chaiAsPromised);
1717const expect = chai.expect;
18before(async () => {18let Alice: IKeyringPair;
19 await usingApi(async () => {19let Bob: IKeyringPair;
20 Alice = privateKey('//Alice');20let Ferdie: IKeyringPair;
21 Bob = privateKey('//Bob');21
22 Ferdie = privateKey('//Ferdie');22before(async () => {
23 });23 await usingApi(async () => {
24});24 Alice = privateKey('//Alice');
2525 Bob = privateKey('//Bob');
26describe('Sponsored with new owner ', () => {26 Ferdie = privateKey('//Ferdie');
27 // tslint:disable-next-line: max-line-length27 });
28 it('Confirmation of sponsorship of a collection in a block with a change in the owner of the collection: ', async () => {28});
29 await usingApi(async (api) => {29
30 const collectionId = await createCollectionExpectSuccess();30describe('Sponsored with new owner ', () => {
31 await setCollectionSponsorExpectSuccess(collectionId, Bob.address);31 // tslint:disable-next-line: max-line-length
32 await waitNewBlocks(2);32 it('Confirmation of sponsorship of a collection in a block with a change in the owner of the collection: ', async () => {
33 const confirmSponsorship = api.tx.nft.confirmSponsorship(collectionId);33 await usingApi(async (api) => {
34 const changeCollectionOwner = api.tx.nft.changeCollectionOwner(collectionId, Ferdie.address);34 const collectionId = await createCollectionExpectSuccess();
35 await Promise.all([35 await setCollectionSponsorExpectSuccess(collectionId, Bob.address);
36 confirmSponsorship.signAndSend(Bob),36 await waitNewBlocks(2);
37 changeCollectionOwner.signAndSend(Alice),37 const confirmSponsorship = api.tx.nft.confirmSponsorship(collectionId);
38 ]);38 const changeCollectionOwner = api.tx.nft.changeCollectionOwner(collectionId, Ferdie.address);
39 await waitNewBlocks(2);39 await Promise.all([
40 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();40 confirmSponsorship.signAndSend(Bob),
41 expect(collection.sponsorship.confirmed).to.be.eq(Bob.address);41 changeCollectionOwner.signAndSend(Alice),
42 expect(collection.owner).to.be.eq(Ferdie.address);42 ]);
43 await waitNewBlocks(2);43 await waitNewBlocks(2);
44 });44 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();
45 });45 expect(collection.sponsorship.confirmed).to.be.eq(Bob.address);
46});46 expect(collection.owner).to.be.eq(Ferdie.address);
4747 await waitNewBlocks(2);
48 });
49 });
50});
51*/
modifiedtests/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
modifiedtests/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';
modifiedtests/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