test: Unflake symlink/scan tests

This commit is contained in:
Jakob Borg
2017-11-13 00:24:14 +01:00
parent 6dd6ecde95
commit d8a0a477ca
3 changed files with 10 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/syncthing/syncthing/lib/rc"
)
func TestSubScan(t *testing.T) {
func TestScanSubdir(t *testing.T) {
log.Println("Cleaning...")
err := removeAll("s1", "s2", "h1/index*", "h2/index*")
if err != nil {
@@ -40,8 +40,13 @@ func TestSubScan(t *testing.T) {
// Verify that the files and directories sync to the other side
sender := startInstance(t, 1)
defer checkedStop(t, sender)
receiver := startInstance(t, 2)
defer checkedStop(t, receiver)
sender.ResumeAll()
receiver.ResumeAll()
log.Println("Syncing...")
rc.AwaitSync("default", sender, receiver)