aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2017-11-13 01:06:16 +0100
committerJakob Borg <jakob@kastelo.net>2017-11-13 01:06:16 +0100
commit80031c59da2992f47a80c044a28aeca18f9d7bd3 (patch)
tree4d8c5403066e50d6c746a053c06dad03b4d6ef5a /test
parent6e35592e9edddd5eddb777bb1a2fb888591859fa (diff)
downloadsyncthing-80031c59da2992f47a80c044a28aeca18f9d7bd3.tar.gz
syncthing-80031c59da2992f47a80c044a28aeca18f9d7bd3.zip
test: Clean & unflake cli & conflict tests
Diffstat (limited to 'test')
-rw-r--r--test/cli_test.go4
-rw-r--r--test/conflict_test.go9
2 files changed, 11 insertions, 2 deletions
diff --git a/test/cli_test.go b/test/cli_test.go
index 2fe31243f..495bf9f8a 100644
--- a/test/cli_test.go
+++ b/test/cli_test.go
@@ -17,7 +17,7 @@ import (
)
func TestCLIReset(t *testing.T) {
- dirs := []string{"h1/index-v0.11.0.db"}
+ dirs := []string{"h1/index-v0.14.0.db"}
// Create directories that reset will remove
@@ -30,7 +30,7 @@ func TestCLIReset(t *testing.T) {
// Run reset to clean up
- cmd := exec.Command("../bin/syncthing", "-no-browser", "-home", "h1", "-reset")
+ cmd := exec.Command("../bin/syncthing", "-no-browser", "-home", "h1", "-reset-database")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout
err := cmd.Run()
diff --git a/test/conflict_test.go b/test/conflict_test.go
index 8cd61a5c9..bd749e76c 100644
--- a/test/conflict_test.go
+++ b/test/conflict_test.go
@@ -56,6 +56,9 @@ func TestConflictsDefault(t *testing.T) {
receiver := startInstance(t, 2)
defer checkedStop(t, receiver)
+ sender.ResumeAll()
+ receiver.ResumeAll()
+
// Rescan with a delay on the next one, so we are not surprised by a
// sudden rescan while we're trying to introduce conflicts.
@@ -242,6 +245,9 @@ func TestConflictsInitialMerge(t *testing.T) {
receiver := startInstance(t, 2)
defer checkedStop(t, receiver)
+ sender.ResumeAll()
+ receiver.ResumeAll()
+
log.Println("Syncing...")
rc.AwaitSync("default", sender, receiver)
@@ -320,6 +326,9 @@ func TestConflictsIndexReset(t *testing.T) {
receiver := startInstance(t, 2)
defer checkedStop(t, receiver)
+ sender.ResumeAll()
+ receiver.ResumeAll()
+
log.Println("Syncing...")
rc.AwaitSync("default", sender, receiver)