mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 20:15:19 +02:00
chore(vscode): update to 1.53.2
These conflicts will be resolved in the following commits. We do it this way so that PR review is possible.
This commit is contained in:
@@ -3,9 +3,25 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import type { Suite } from 'mocha';
|
||||
import { join } from 'vs/base/common/path';
|
||||
import { generateUuid } from 'vs/base/common/uuid';
|
||||
|
||||
export function getRandomTestPath(tmpdir: string, ...segments: string[]): string {
|
||||
return join(tmpdir, ...segments, generateUuid());
|
||||
}
|
||||
|
||||
export function flakySuite(title: string, fn: (this: Suite) => void): Suite {
|
||||
return suite(title, function () {
|
||||
|
||||
// Flaky suites need retries and timeout to complete
|
||||
// e.g. because they access the file system which can
|
||||
// be unreliable depending on the environment.
|
||||
this.retries(3);
|
||||
this.timeout(1000 * 20);
|
||||
|
||||
// Invoke suite ensuring that `this` is
|
||||
// properly wired in.
|
||||
fn.call(this);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user