mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
The change in 225c0dda80
(#5511) results in
conflicts being immediately scanned and synced, while the test expects just one
conflict on either side. Change it to expect the same conflict on both sides.
This commit is contained in:
parent
e31a116e6e
commit
bc53782f88
@ -133,8 +133,10 @@ func TestConflictsDefault(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if len(files) != 1 {
|
if len(files) != 2 {
|
||||||
t.Errorf("Expected 1 conflicted files instead of %d", len(files))
|
t.Errorf("Expected 1 conflicted file on each side, instead of totally %d", len(files))
|
||||||
|
} else if filepath.Base(files[0]) != filepath.Base(files[1]) {
|
||||||
|
t.Errorf(`Expected same conflicted file on both sides, got "%v" and "%v"`, files[0], files[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("Introducing a conflict (edit plus delete)...")
|
log.Println("Introducing a conflict (edit plus delete)...")
|
||||||
|
Loading…
Reference in New Issue
Block a user