vscode API - globalState / workspaceState unit test flake (fix #210575) (#210632)

This commit is contained in:
Benjamin Pasero 2024-04-18 10:54:47 +02:00 committed by GitHub
parent 47ea339db5
commit 47e4d24fa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ suite('vscode API - globalState / workspaceState', () => {
let res = state.get('state.test.get', 'default');
assert.strictEqual(res, 'default');
await state.update('state.test.get', 'testvalue');
state.update('state.test.get', 'testvalue');
keys = state.keys();
assert.strictEqual(keys.length, 1);
@ -33,7 +33,7 @@ suite('vscode API - globalState / workspaceState', () => {
res = state.get('state.test.get', 'default');
assert.strictEqual(res, 'testvalue');
await state.update('state.test.get', undefined);
state.update('state.test.get', undefined);
keys = state.keys();
assert.strictEqual(keys.length, 0, `Unexpected keys: ${JSON.stringify(keys)}`);