aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2016-12-19 12:26:26 +0100
committerJakob Borg <jakob@nym.se>2016-12-21 14:53:45 +0100
commitdd7bb6c4b81428301dfd554fcc60f8d22e088cda (patch)
treeb15638f358ba0d686b174837e48ecccfef56e274 /test
parentd41c1313646c53bce445a779d26f9416fb2f9eda (diff)
downloadsyncthing-dd7bb6c4b81428301dfd554fcc60f8d22e088cda.tar.gz
syncthing-dd7bb6c4b81428301dfd554fcc60f8d22e088cda.zip
lib/model: Fix tests, clean up pool usage in protocol
Diffstat (limited to 'test')
-rw-r--r--test/override_test.go2
-rw-r--r--test/sync_test.go2
2 files changed, 1 insertions, 3 deletions
diff --git a/test/override_test.go b/test/override_test.go
index b95c90c7f..c166e024e 100644
--- a/test/override_test.go
+++ b/test/override_test.go
@@ -27,7 +27,7 @@ func TestOverride(t *testing.T) {
id, _ := protocol.DeviceIDFromString(id1)
cfg, _ := config.Load("h1/config.xml", id)
fld := cfg.Folders()["default"]
- fld.Type = config.FolderTypeReadOnly
+ fld.Type = config.FolderTypeSendOnly
cfg.SetFolder(fld)
os.Rename("h1/config.xml", "h1/config.xml.orig")
defer osutil.Rename("h1/config.xml.orig", "h1/config.xml")
diff --git a/test/sync_test.go b/test/sync_test.go
index c635df208..e67fb262a 100644
--- a/test/sync_test.go
+++ b/test/sync_test.go
@@ -17,8 +17,6 @@ import (
"testing"
"time"
- "io"
-
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/protocol"
"github.com/syncthing/syncthing/lib/rc"