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

@ -79,7 +79,7 @@
<natTimeoutSeconds>10</natTimeoutSeconds>
<urAccepted>-1</urAccepted>
<urSeen>2</urSeen>
<urUniqueID></urUniqueID>
<urUniqueID>UL4yowgK</urUniqueID>
<urURL>https://data.syncthing.net/newdata</urURL>
<urPostInsecurely>false</urPostInsecurely>
<urInitialDelayS>1800</urInitialDelayS>

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)

View File

@ -158,6 +158,9 @@ func testSymlinks(t *testing.T) {
receiver := startInstance(t, 2)
defer checkedStop(t, receiver)
sender.ResumeAll()
receiver.ResumeAll()
log.Println("Syncing...")
rc.AwaitSync("default", sender, receiver)