X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/fd740bc499ebc6d3a381479316f74cdc736d02de..335f5eb5851db549f7654852296a48b2137f248f:/hotline/server_test.go?ds=sidebyside diff --git a/hotline/server_test.go b/hotline/server_test.go index c3d38da..d0e2372 100644 --- a/hotline/server_test.go +++ b/hotline/server_test.go @@ -99,12 +99,7 @@ func TestServer_handleFileTransfer(t *testing.T) { { name: "file download", fields: fields{ - FS: &OSFileStore{}, - Config: Config{ - FileRoot: func() string { - path, _ := os.Getwd() - return path + "/test/config/Files" - }()}, + FS: &OSFileStore{}, Logger: NewTestLogger(), Stats: NewStats(), FileTransferMgr: &MemFileTransferMgr{ @@ -114,6 +109,10 @@ func TestServer_handleFileTransfer(t *testing.T) { Type: FileDownload, FileName: []byte("testfile-8b"), FilePath: []byte{}, + FileRoot: func() string { + path, _ := os.Getwd() + return path + "/test/config/Files" + }(), ClientConn: &ClientConn{ Account: &Account{ Login: "foo",