Increase test coverage

This commit is contained in:
Julian Kornberger
2015-08-20 10:32:28 +02:00
parent fb305c5912
commit 6f8509b5d6
2 changed files with 27 additions and 5 deletions

View File

@@ -116,6 +116,14 @@ func testConn(t *testing.T, passive bool) {
t.Error(err)
}
entries, err := c.NameList("/")
if err != nil {
t.Error(err)
}
if len(entries) != 1 || entries[0] != "/incoming" {
t.Errorf("Unexpected entries: %v", entries)
}
err = c.RemoveDir(testDir)
if err != nil {
t.Error(err)