Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
VSCode committed Oct 22, 2020
2 parents 8af28bb + d0c90c9 commit 1dfc92e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 12 additions & 4 deletions src/vs/base/parts/storage/test/node/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ import { timeout } from 'vs/base/common/async';
import { Event, Emitter } from 'vs/base/common/event';
import { isWindows } from 'vs/base/common/platform';

suite('Storage Library', () => {
suite('Storage Library', function () {

// Given issues such as https://github.com/microsoft/vscode/issues/108113
// we see random test failures when accessing the native file system.
this.retries(3);
this.timeout(1000 * 20);

function uniqueStorageDir(): string {
const id = generateUuid();
Expand Down Expand Up @@ -278,7 +283,12 @@ suite('Storage Library', () => {
});
});

suite('SQLite Storage Library', () => {
suite('SQLite Storage Library', function () {

// Given issues such as https://github.com/microsoft/vscode/issues/108113
// we see random test failures when accessing the native file system.
this.retries(3);
this.timeout(1000 * 20);

function uniqueStorageDir(): string {
const id = generateUuid();
Expand Down Expand Up @@ -540,8 +550,6 @@ suite('SQLite Storage Library', () => {
});

test('real world example', async function () {
this.timeout(20000);

const storageDir = uniqueStorageDir();

await mkdirp(storageDir);
Expand Down
11 changes: 6 additions & 5 deletions src/vs/platform/storage/test/node/storageService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ import { URI } from 'vs/base/common/uri';

suite('StorageService', function () {

// Given issues such as https://github.com/microsoft/vscode/issues/108113
// we see random test failures when accessing the native file system.
this.retries(3);
this.timeout(1000 * 10);

test('Remove Data (global, in-memory)', () => {
removeData(StorageScope.GLOBAL);
});
Expand Down Expand Up @@ -89,6 +84,12 @@ suite('StorageService', function () {
}

test('Migrate Data', async () => {

// Given issues such as https://github.com/microsoft/vscode/issues/108113
// we see random test failures when accessing the native file system.
this.retries(3);
this.timeout(1000 * 20);

class StorageTestEnvironmentService extends NativeEnvironmentService {

constructor(private workspaceStorageFolderPath: URI, private _extensionsPath: string) {
Expand Down

0 comments on commit 1dfc92e

Please sign in to comment.