Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisman committed Oct 8, 2022
1 parent b4e406e commit 91fe176
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/test/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"eslint": "eslint --format stylish src",
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
"lint": "npm run eslint",
"lint:fix": "npm run eslint:fix",
"lint:fix": "npm run eslint:fix", "@fluidframework/mocha-test-setup": ">=2.0.0-internal.1.3.0 <2.0.0-internal.2.0.0",
"test": "npm run test:mocha",
"test:mocha": "mocha --unhandled-rejections=strict --recursive dist/test/*.spec.js --exit --project src/test/tsconfig.json -r node_modules/@fluidframework/mocha-test-setup",
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
Expand Down
12 changes: 6 additions & 6 deletions packages/test/test-utils/src/timeoutUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ if (globalThis.registerMochaTestWrapperFunc !== undefined) {
}

export interface TimeoutWithError {
// Timeout duration in milliseconds.
// If it is undefined, then the default is 250.
// If it is <= 0 or infinity, then there is no timeout
// Timeout duration in milliseconds, if it is > 0 and not Infinity
// If it is undefined, then it will use test timeout if we are in side the test function
// Otherwise, there is no timeout
durationMs?: number;
reject?: true;
errorMsg?: string;
}
export interface TimeoutWithValue<T = void> {
// Timeout duration in milliseconds.
// If it is undefined, then the default is 250.
// If it is <= 0 or infinity, then there is no timeout
// Timeout duration in milliseconds, if it is > 0 and not Infinity
// If it is undefined, then it will use test timeout if we are in side the test function
// Otherwise, there is no timeout
durationMs?: number;
reject: false;
value: T;
Expand Down

0 comments on commit 91fe176

Please sign in to comment.