diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 21:31:42 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 21:40:38 -0700 |
| commit | dcd23d5355badf66c34ffd63d3c44734e87ebf17 (patch) | |
| tree | eac7ec135e1e06ac8f4e9cb6aa0e04d392d1d69d /hotline/server_test.go | |
| parent | 9f89cd9fbbcec9f7f42c87ee0adc21427aab9f1c (diff) | |
Add option for account-specific file root
Diffstat (limited to 'hotline/server_test.go')
| -rw-r--r-- | hotline/server_test.go | 11 |
1 files changed, 5 insertions, 6 deletions
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", |