Skip to content

Commit

Permalink
DO NOT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
taratatach committed Aug 1, 2024
1 parent 296c175 commit 8489018
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ jobs:
- name: Elm tests
run: yarn test:elm
- name: World tests
run: yarn test:world --forbid-only
run: yarn test:world
- name: Unit tests
run: yarn test:unit --forbid-only
run: yarn test:unit

integration:
needs: cancel
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- name: Start Xvfb
run: sudo Xvfb :99 -ac -screen 0 1024x768x8 &
- name: Integration tests
run: yarn test:integration --forbid-only
run: yarn test:integration

scenarios:
needs: cancel
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- name: Scenarios
env:
STOPPED_CLIENT: ${{ matrix.stopped_client == 'STOPPED' }}
run: yarn test:scenarios --forbid-only
run: yarn test:scenarios

build:
needs: cancel
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Unit tests
env:
COZY_DESKTOP_FS: ${{ matrix.fs }}
run: yarn test:unit --forbid-only
run: yarn test:unit

integration:
needs: [cancel, docker_cache_key]
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- name: Integration tests
env:
COZY_DESKTOP_FS: ${{ matrix.fs }}
run: yarn test:integration --forbid-only
run: yarn test:integration

scenarios:
needs: [cancel, docker_cache_key]
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
env:
STOPPED_CLIENT: ${{ matrix.stopped_client == 'STOPPED' }}
COZY_DESKTOP_FS: ${{ matrix.fs }}
run: yarn test:scenarios --forbid-only
run: yarn test:scenarios

build:
needs: cancel
Expand Down
8 changes: 8 additions & 0 deletions core/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class Merge {
file.local.updated_at === doc.local.updated_at)
) {
log.debug({ path: doc.path, doc, file }, 'Same local metadata')
// eslint-disable-next-line no-console
console.log('updateFileAsync 1', { side, doc, file })
return
}
}
Expand Down Expand Up @@ -231,6 +233,8 @@ class Merge {
}
return this.save(doc)
} else {
// eslint-disable-next-line no-console
console.log('updateFileAsync 2', { side, doc, file })
return
}
}
Expand Down Expand Up @@ -269,6 +273,8 @@ class Merge {
} else {
// TODO: should we save the new metadata anyway to make sure we
// have up-to-date side infos?
// eslint-disable-next-line no-console
console.log('updateFileAsync 3', { side, doc, file })
return
}
} else {
Expand Down Expand Up @@ -307,6 +313,8 @@ class Merge {
} else {
// TODO: should we save the new metadata anyway to make sure we
// have up-to-date side infos?
// eslint-disable-next-line no-console
console.log('updateFileAsync 4', { side, doc, file })
return
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ describe('Merge', function () {
})
})

it('converts an overwriting move into a local update', async function () {
it.only('converts an overwriting move into a local update', async function () {
const existing = await builders
.metafile()
.path('FOO/NEW')
Expand Down

0 comments on commit 8489018

Please sign in to comment.