replication: add diff test case

This commit is contained in:
Christian Schwarz 2019-03-13 16:40:55 +01:00
parent 8129ed91f1
commit 1eb0f12a61

View File

@ -96,6 +96,14 @@ func TestIncrementalPath_SnapshotsOnly(t *testing.T) {
assert.Equal(t, l("@c,3", "@d,4"), path) assert.Equal(t, l("@c,3", "@d,4"), path)
}) })
// sender with earlier but also current version as sender is not a conflict
doTest(l("@c,3"), l("@a,1", "@b,2", "@c,3") , func(path []*FilesystemVersion, conflict error) {
t.Logf("path: %#v", path)
t.Logf("conflict: %#v", conflict)
assert.Empty(t, path)
assert.Nil(t, conflict)
})
} }
func TestIncrementalPath_BookmarkSupport(t *testing.T) { func TestIncrementalPath_BookmarkSupport(t *testing.T) {