Skip to content

Commit 56e0a19

Browse files
fix control hierarchy
1 parent 8855514 commit 56e0a19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/test/local-server-stress-tests/src/localServerStressHarness.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,11 @@ export function createLocalServerStressSuite<TOperation extends BaseOperation>(
11431143
...providedOptions,
11441144
};
11451145

1146-
const only = new Set(options.only);
1147-
const skip = new Set(options.skip);
11481146
const replay = options.replay;
1147+
// replay supersedes only and skip, and only supersedes skip
1148+
// this allows all to be specified even if the seeds overlap
1149+
const only = new Set(replay === undefined ? options.only : undefined);
1150+
const skip = new Set(replay === undefined && only.size === 0 ? options.skip : undefined);
11491151
Object.assign(options, { only, skip });
11501152
assert(isInternalOptions(options));
11511153

0 commit comments

Comments
 (0)