Retry test

Adding simple retry while investigating why this sometimes times out
This commit is contained in:
Matt Bierner
2021-12-14 12:31:51 -08:00
parent 913639f42a
commit 25ef7a83fc

View File

@@ -151,7 +151,9 @@ suite('vscode API - webview', () => {
assert.strictEqual(secondResponse.value, 1);
});
test('webviews with retainContextWhenHidden should preserve their context when they are hidden', async () => {
test('webviews with retainContextWhenHidden should preserve their context when they are hidden', async function () {
this.retries(3);
const webview = _register(vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true, retainContextWhenHidden: true }));
const ready = getMessage(webview);