Fix E2E test by not creating deleted files
This commit is contained in:
parent
0cd2e9175f
commit
ef00174538
1 changed files with 8 additions and 1 deletions
|
|
@ -45,6 +45,13 @@ export class UnrestrictedSyncer {
|
||||||
document.relativePath,
|
document.relativePath,
|
||||||
SyncType.CREATE,
|
SyncType.CREATE,
|
||||||
async () => {
|
async () => {
|
||||||
|
if (document.isDeleted) {
|
||||||
|
this.logger.debug(
|
||||||
|
`Document ${document.relativePath} has been already deleted, no need to update it`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const contentBytes = await this.operations.read(
|
const contentBytes = await this.operations.read(
|
||||||
document.relativePath
|
document.relativePath
|
||||||
); // this can throw FileNotFoundError
|
); // this can throw FileNotFoundError
|
||||||
|
|
@ -125,7 +132,7 @@ export class UnrestrictedSyncer {
|
||||||
async () => {
|
async () => {
|
||||||
const originalRelativePath = document.relativePath;
|
const originalRelativePath = document.relativePath;
|
||||||
|
|
||||||
if (document.metadata === undefined || document.isDeleted) {
|
if (document.isDeleted || document.metadata === undefined) {
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Document ${document.relativePath} has been already deleted, no need to update it`
|
`Document ${document.relativePath} has been already deleted, no need to update it`
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue