From 1eb0f12a61a68db7d27e219115ffc3f3b4609931 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 13 Mar 2019 16:40:55 +0100 Subject: [PATCH] replication: add diff test case --- replication/logic/diff/diff_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/replication/logic/diff/diff_test.go b/replication/logic/diff/diff_test.go index 56dd32f..46200b3 100644 --- a/replication/logic/diff/diff_test.go +++ b/replication/logic/diff/diff_test.go @@ -96,6 +96,14 @@ func TestIncrementalPath_SnapshotsOnly(t *testing.T) { 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) {