Add local prediction for remote cursor updates
This commit is contained in:
parent
b7e80c39f1
commit
e73f147fbc
6 changed files with 207 additions and 40 deletions
|
|
@ -7,7 +7,7 @@ import { MockClient } from "./mock-client";
|
|||
import { sleep } from "../utils/sleep";
|
||||
import type { LogLine } from "sync-client/dist/types/tracing/logger";
|
||||
import { flakyFetchFactory } from "../utils/flaky-fetch";
|
||||
import { flakyWebSocketFactory } from "../utils/flaky-websocket";
|
||||
import { flakyWebSocketFactory } from "../utils/flaky-websocket-factory";
|
||||
|
||||
export class MockAgent extends MockClient {
|
||||
private readonly writtenContents: string[] = [];
|
||||
|
|
@ -62,7 +62,7 @@ export class MockAgent extends MockClient {
|
|||
console.error(formatted);
|
||||
|
||||
if (!this.useSlowFileEvents) {
|
||||
// Let's not ignore errors
|
||||
// Let's wait for the error to be caught if there was one
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
sleep(100).then(() => process.exit(1));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue