Remove useless syncs
This commit is contained in:
parent
8b7be48522
commit
fc0ff0df1c
52 changed files with 0 additions and 103 deletions
|
|
@ -18,7 +18,6 @@ export const createRenameCreateSamePathTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ export const coalescedRemoteUpdateWatermarkLossTest: TestDefinition = {
|
|||
{ type: "update", client: 0, path: "doc.md", content: "update 1" },
|
||||
{ type: "update", client: 0, path: "doc.md", content: "update 2" },
|
||||
{ type: "update", client: 0, path: "doc.md", content: "final update" },
|
||||
{ type: "sync", client: 0 },
|
||||
|
||||
{ type: "barrier" },
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export const concurrentRenameSameTargetTest: TestDefinition = {
|
|||
{ type: "rename", client: 1, oldPath: "B.md", newPath: "C.md" },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const deleteDuringPendingCreateTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
@ -24,7 +23,6 @@ export const deleteDuringPendingCreateTest: TestDefinition = {
|
|||
{ type: "delete", client: 0, path: "ephemeral.md" },
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const deleteRecreateConcurrentUpdateTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -31,7 +30,6 @@ export const deleteRecreateConcurrentUpdateTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const deleteRecreateDifferentContentTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -39,7 +38,6 @@ export const deleteRecreateDifferentContentTest: TestDefinition = {
|
|||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const deleteRecreateSamePathTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "version 1" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -23,7 +22,6 @@ export const deleteRecreateSamePathTest: TestDefinition = {
|
|||
{ type: "delete", client: 0, path: "A.md" },
|
||||
{ type: "create", client: 0, path: "A.md", content: "version 2" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const deleteRenameConflictTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "B.md", content: "content-b" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -28,7 +27,6 @@ export const deleteRenameConflictTest: TestDefinition = {
|
|||
{ type: "rename", client: 1, oldPath: "A.md", newPath: "C.md" },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const doubleOfflineCycleTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -33,7 +32,6 @@ export const doubleOfflineCycleTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -51,7 +49,6 @@ export const doubleOfflineCycleTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -69,7 +66,6 @@ export const doubleOfflineCycleTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const idempotencyAfterServerPauseTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -22,7 +21,6 @@ export const idempotencyAfterServerPauseTest: TestDefinition = {
|
|||
|
||||
{ type: "resume-server" },
|
||||
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const interruptedDeleteRetryTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "doc.md", content: "to be deleted" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "delete", client: 0, path: "doc.md" },
|
||||
|
|
@ -18,7 +17,6 @@ export const interruptedDeleteRetryTest: TestDefinition = {
|
|||
{ type: "pause-server" },
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const keyMigrationEventDropTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
@ -28,7 +27,6 @@ export const keyMigrationEventDropTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export const mcCrossCreateRenameSameTargetTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -31,7 +30,6 @@ export const mcCrossCreateRenameSameTargetTest: TestDefinition = {
|
|||
{ type: "rename", client: 1, oldPath: "Y.md", newPath: "Z.md" },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export const mcDeleteThenOfflineRenameTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "C.md", content: "unrelated" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 1 },
|
||||
|
|
@ -23,7 +22,6 @@ export const mcDeleteThenOfflineRenameTest: TestDefinition = {
|
|||
{ type: "rename", client: 1, oldPath: "A.md", newPath: "B.md" },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const mcMultiDeleteOfflineRenameTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "file-5.md", content: "content-5" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -31,7 +30,6 @@ export const mcMultiDeleteOfflineRenameTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const mcThreeClientRenameOfflineUpdateTest: TestDefinition = {
|
|||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "enable-sync", client: 2 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 2 },
|
||||
|
|
@ -28,7 +27,6 @@ export const mcThreeClientRenameOfflineUpdateTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 2 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const migrateKeyPreservesExistingTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
@ -23,7 +22,6 @@ export const migrateKeyPreservesExistingTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const moveAndConcurrentRemoteUpdateTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -30,7 +29,6 @@ export const moveAndConcurrentRemoteUpdateTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const movePreservesRemoteUpdateTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -31,7 +30,6 @@ export const movePreservesRemoteUpdateTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const moveRemoteUpdateRevertsRenameTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "doc.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -24,7 +23,6 @@ export const moveRemoteUpdateRevertsRenameTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "rename", client: 0, oldPath: "doc.md", newPath: "renamed.md" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,13 +15,11 @@ export const moveThenDeleteStalePathTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "rename", client: 0, oldPath: "A.md", newPath: "B.md" },
|
||||
{ type: "delete", client: 0, path: "B.md" },
|
||||
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export const multiFileOperationsTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "C.md", content: "content-c" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 1 },
|
||||
|
|
@ -29,7 +28,6 @@ export const multiFileOperationsTest: TestDefinition = {
|
|||
{ type: "rename", client: 1, oldPath: "A.md", newPath: "D.md" },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export const offlineConcurrentRenamesTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "shared-content" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -40,7 +39,6 @@ export const offlineConcurrentRenamesTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ export const offlineCreateSamePathMergeableTest: TestDefinition = {
|
|||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const offlineDeleteVsRemoteUpdateTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -35,7 +34,6 @@ export const offlineDeleteVsRemoteUpdateTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const offlineEditRemoteRenameTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -36,7 +35,6 @@ export const offlineEditRemoteRenameTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ export const offlineEditThenMoveSameContentTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -37,7 +36,6 @@ export const offlineEditThenMoveSameContentTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export const offlineMixedOperationsTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "file3.md", content: "content-3" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -42,7 +41,6 @@ export const offlineMixedOperationsTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const offlineMoveThenRemoteDeleteTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -25,7 +24,6 @@ export const offlineMoveThenRemoteDeleteTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const offlineMultipleEditsTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "doc.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -29,7 +28,6 @@ export const offlineMultipleEditsTest: TestDefinition = {
|
|||
{ type: "update", client: 0, path: "doc.md", content: "edit-5-final" },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const offlineRenameAndEditTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -30,7 +29,6 @@ export const offlineRenameAndEditTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const offlineRenameRemoteCreateOldPathTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "X.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -37,7 +36,6 @@ export const offlineRenameRemoteCreateOldPathTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ export const offlineUpdateBothThenDeleteOneTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -61,7 +60,6 @@ export const offlineUpdateBothThenDeleteOneTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const overlappingEditsSameSectionTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -37,7 +36,6 @@ export const overlappingEditsSameSectionTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const rapidCreateUpdateDeleteCycleTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export const rapidUpdatesAfterMergeTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -37,7 +36,6 @@ export const rapidUpdatesAfterMergeTest: TestDefinition = {
|
|||
path: "doc.md",
|
||||
content: "update 3"
|
||||
},
|
||||
{ type: "sync", client: 0 },
|
||||
|
||||
{ type: "barrier" },
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const renameChainThenDeleteTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "X.md", content: "chain-content" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -39,7 +38,6 @@ export const renameChainThenDeleteTest: TestDefinition = {
|
|||
{ type: "sync", client: 0 },
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ export const renameChainTest: TestDefinition = {
|
|||
{ type: "rename", client: 0, oldPath: "B.md", newPath: "C.md" },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ export const renameCircularTest: TestDefinition = {
|
|||
{ type: "rename", client: 0, oldPath: "temp-a.md", newPath: "B.md" },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ export const renameCreateConflictTest: TestDefinition = {
|
|||
{ type: "sync", client: 1 },
|
||||
{ type: "create", client: 0, path: "B.md", content: "hi" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync", client: 0 },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const renameRoundtripTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -19,7 +18,6 @@ export const renameRoundtripTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "rename", client: 0, oldPath: "A.md", newPath: "B.md" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -30,7 +28,6 @@ export const renameRoundtripTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "rename", client: 0, oldPath: "B.md", newPath: "A.md" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const renameToPendingPathFallbackTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -29,7 +28,6 @@ export const renameToPendingPathFallbackTest: TestDefinition = {
|
|||
{ type: "rename", client: 0, oldPath: "B.md", newPath: "A.md" },
|
||||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ export const renameToRecentlyDeletedPathTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "B.md", content: "content-b" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 1 },
|
||||
|
|
@ -26,7 +25,6 @@ export const renameToRecentlyDeletedPathTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export const renameUpdateConflictTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -31,7 +30,6 @@ export const renameUpdateConflictTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const sequentialCreateDuplicateContentTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -30,7 +29,6 @@ export const sequentialCreateDuplicateContentTest: TestDefinition = {
|
|||
path: "B.md",
|
||||
content: "identical content here"
|
||||
},
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ export const serverPauseBothClientsCreateTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -28,7 +27,6 @@ export const serverPauseBothClientsCreateTest: TestDefinition = {
|
|||
|
||||
{ type: "resume-server" },
|
||||
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export const serverPauseBothEditSameFileTest: TestDefinition = {
|
|||
},
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
@ -35,7 +34,6 @@ export const serverPauseBothEditSameFileTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
@ -55,7 +53,6 @@ export const serverPauseBothEditSameFileTest: TestDefinition = {
|
|||
path: "shared.md",
|
||||
content: "post-merge edit from client 0"
|
||||
},
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ export const serverPauseRenameEditResumeTest: TestDefinition = {
|
|||
path: "A.md",
|
||||
content: "original content"
|
||||
},
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -37,7 +36,6 @@ export const serverPauseRenameEditResumeTest: TestDefinition = {
|
|||
|
||||
{ type: "resume-server" },
|
||||
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export const simultaneousCreateDeleteSamePathTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "A.md", content: "original from 0" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 1 },
|
||||
|
|
@ -27,7 +26,6 @@ export const simultaneousCreateDeleteSamePathTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ export const updateDuringCreateProcessingTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "pause-server" },
|
||||
|
|
@ -28,7 +27,6 @@ export const updateDuringCreateProcessingTest: TestDefinition = {
|
|||
},
|
||||
|
||||
{ type: "resume-server" },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ export const watermarkAdvancesOnSkipTest: TestDefinition = {
|
|||
steps: [
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
|
|
@ -18,14 +17,12 @@ export const watermarkAdvancesOnSkipTest: TestDefinition = {
|
|||
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "disable-sync", client: 0 },
|
||||
{ type: "disable-sync", client: 1 },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,15 +9,12 @@ export const watermarkGapRemoteUpdateNotRecordedTest: TestDefinition = {
|
|||
{ type: "create", client: 0, path: "doc.md", content: "original" },
|
||||
{ type: "enable-sync", client: 0 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{ type: "update", client: 0, path: "doc.md", content: "update 1" },
|
||||
{ type: "sync", client: 0 },
|
||||
{ type: "update", client: 0, path: "doc.md", content: "update 2" },
|
||||
{ type: "sync", client: 0 },
|
||||
|
||||
{ type: "sync", client: 1 },
|
||||
{ type: "barrier" },
|
||||
{
|
||||
type: "assert-consistent",
|
||||
|
|
@ -28,7 +25,6 @@ export const watermarkGapRemoteUpdateNotRecordedTest: TestDefinition = {
|
|||
|
||||
{ type: "disable-sync", client: 1 },
|
||||
{ type: "enable-sync", client: 1 },
|
||||
{ type: "sync" },
|
||||
{ type: "barrier" },
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue