Skip to content

Commit a4e8311

Browse files
committed
tests: fixed slow gestalts test
1 parent f88f6aa commit a4e8311

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

tests/gestalts/GestaltGraph.test.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ describe('GestaltGraph', () => {
755755
});
756756
testProp(
757757
'getGestalts with nodes',
758-
[fc.array(gestaltNodeInfoComposedArb, { minLength: 2 })],
758+
[fc.array(gestaltNodeInfoComposedArb, { minLength: 2, maxLength: 10 })],
759759
async (gestaltNodeInfos) => {
760760
const ids = new Set<string>();
761761
for (const gestaltNodeInfo of gestaltNodeInfos) {
@@ -792,7 +792,11 @@ describe('GestaltGraph', () => {
792792
);
793793
testProp(
794794
'getGestalts with identities',
795-
[fc.array(gestaltIdentityInfoComposedArb, { minLength: 2 }).noShrink()],
795+
[
796+
fc
797+
.array(gestaltIdentityInfoComposedArb, { minLength: 2, maxLength: 10 })
798+
.noShrink(),
799+
],
796800
async (gestaltIdentityInfos) => {
797801
const ids = new Set<string>();
798802
for (const gestaltIdentityInfo of gestaltIdentityInfos) {
@@ -832,11 +836,10 @@ describe('GestaltGraph', () => {
832836
});
833837
}
834838
},
835-
{ seed: 1958145926, path: '81', endOnFailure: true },
836839
);
837840
testProp(
838841
'getGestalts with nodes and identities',
839-
[fc.array(gestaltInfoComposedArb, { minLength: 2 })],
842+
[fc.array(gestaltInfoComposedArb, { minLength: 2, maxLength: 10 })],
840843
async (gestaltInfos) => {
841844
const ids = new Set<string>();
842845
for (const gestaltInfo of gestaltInfos) {
@@ -1168,10 +1171,14 @@ describe('GestaltGraph', () => {
11681171
// Use a record to generate a constrained set of vertices
11691172
fc
11701173
.record({
1171-
keyPairs: fc.array(testsKeysUtils.keyPairArb, { minLength: 2 }),
1174+
keyPairs: fc.array(testsKeysUtils.keyPairArb, {
1175+
minLength: 2,
1176+
maxLength: 10,
1177+
}),
11721178
identityInfos: fc
11731179
.array(gestaltIdentityInfoComposedArb, {
11741180
minLength: 1,
1181+
maxLength: 2,
11751182
})
11761183
.filter((v) => {
11771184
const ids = new Set<string>();
@@ -1388,7 +1395,7 @@ describe('GestaltGraph', () => {
13881395
await acl.stop();
13891396
}
13901397
},
1391-
{ numRuns: 50 },
1398+
{ numRuns: 20 },
13921399
);
13931400
});
13941401
});

0 commit comments

Comments
 (0)