Skip to content

Commit

Permalink
tests: fixed slow gestalts test
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed Aug 3, 2023
1 parent 4d37279 commit 51bd7c4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions tests/gestalts/GestaltGraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ describe('GestaltGraph', () => {
});
testProp(
'getGestalts with nodes',
[fc.array(gestaltNodeInfoComposedArb, { minLength: 2 })],
[fc.array(gestaltNodeInfoComposedArb, { minLength: 2, maxLength: 10 })],
async (gestaltNodeInfos) => {
const ids = new Set<string>();
for (const gestaltNodeInfo of gestaltNodeInfos) {
Expand Down Expand Up @@ -792,7 +792,11 @@ describe('GestaltGraph', () => {
);
testProp(
'getGestalts with identities',
[fc.array(gestaltIdentityInfoComposedArb, { minLength: 2 }).noShrink()],
[
fc
.array(gestaltIdentityInfoComposedArb, { minLength: 2, maxLength: 10 })
.noShrink(),
],
async (gestaltIdentityInfos) => {
const ids = new Set<string>();
for (const gestaltIdentityInfo of gestaltIdentityInfos) {
Expand Down Expand Up @@ -832,11 +836,10 @@ describe('GestaltGraph', () => {
});
}
},
{ seed: 1958145926, path: '81', endOnFailure: true },
);
testProp(
'getGestalts with nodes and identities',
[fc.array(gestaltInfoComposedArb, { minLength: 2 })],
[fc.array(gestaltInfoComposedArb, { minLength: 2, maxLength: 10 })],
async (gestaltInfos) => {
const ids = new Set<string>();
for (const gestaltInfo of gestaltInfos) {
Expand Down Expand Up @@ -1168,10 +1171,14 @@ describe('GestaltGraph', () => {
// Use a record to generate a constrained set of vertices
fc
.record({
keyPairs: fc.array(testsKeysUtils.keyPairArb, { minLength: 2 }),
keyPairs: fc.array(testsKeysUtils.keyPairArb, {
minLength: 2,
maxLength: 10,
}),
identityInfos: fc
.array(gestaltIdentityInfoComposedArb, {
minLength: 1,
maxLength: 2,
})
.filter((v) => {
const ids = new Set<string>();
Expand Down Expand Up @@ -1388,7 +1395,7 @@ describe('GestaltGraph', () => {
await acl.stop();
}
},
{ numRuns: 50 },
{ numRuns: 20 },
);
});
});

0 comments on commit 51bd7c4

Please sign in to comment.