提交 b98f6685 编写于 作者: S Sandeep Somavarapu

fix tests

上级 fc0dff33
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册