Fix tests
This commit is contained in:
parent
fc0ff0df1c
commit
2a6d824cc9
6 changed files with 8 additions and 58 deletions
|
|
@ -76,7 +76,7 @@ export class ServerConfig {
|
|||
return this.config;
|
||||
}
|
||||
|
||||
private startPing(): Promise<PingResponse> {
|
||||
private async startPing(): Promise<PingResponse> {
|
||||
const pending = this.syncService.ping().catch((e: unknown) => {
|
||||
if (this.response === pending) {
|
||||
this.response = undefined;
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ export class SyncEventQueue {
|
|||
newPath: RelativePath
|
||||
): void {
|
||||
const createEvent = this.findLatestCreateForPath(oldPath);
|
||||
if (createEvent === undefined) {return;}
|
||||
if (createEvent === undefined) { return; }
|
||||
|
||||
const { promise } = createEvent.resolvers;
|
||||
createEvent.path = newPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue