diff options
author | Jakob Borg <jakob@kastelo.net> | 2016-12-19 12:26:26 +0100 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-12-21 14:53:45 +0100 |
commit | dd7bb6c4b81428301dfd554fcc60f8d22e088cda (patch) | |
tree | b15638f358ba0d686b174837e48ecccfef56e274 /test | |
parent | d41c1313646c53bce445a779d26f9416fb2f9eda (diff) | |
download | syncthing-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.go | 2 | ||||
-rw-r--r-- | test/sync_test.go | 2 |
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" |