fix tests
This commit is contained in:
parent
fc0dff3335
commit
b98f6685ee
1 changed files with 0 additions and 4 deletions
|
@ -391,13 +391,9 @@ suite('UserDataAutoSyncService', () => {
|
|||
await testClient.setUp();
|
||||
const testObject: TestUserDataAutoSyncService = testClient.instantiationService.createInstance(TestUserDataAutoSyncService);
|
||||
|
||||
const errorPromise = Event.toPromise(testObject.onError);
|
||||
while (target.requests.length < 5) {
|
||||
await testObject.sync();
|
||||
}
|
||||
const e = await errorPromise;
|
||||
assert.ok(e instanceof UserDataSyncStoreError);
|
||||
assert.deepEqual((<UserDataSyncStoreError>e).code, UserDataSyncErrorCode.TooManyRequestsAndRetryAfter);
|
||||
|
||||
target.reset();
|
||||
await testObject.sync();
|
||||
|
|
Loading…
Reference in a new issue