-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New method Client.Extensions to list server extensions
- Loading branch information
greatroar
committed
Oct 22, 2020
1 parent
fcaa492
commit 6269895
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ package sftp | |
import ( | ||
"syscall" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestClientStatVFS(t *testing.T) { | ||
|
@@ -13,6 +15,9 @@ func TestClientStatVFS(t *testing.T) { | |
defer cmd.Wait() | ||
defer sftp.Close() | ||
|
||
ok, _ := sftp.HasExtension("[email protected]") | ||
require.True(t, ok, "server doesn't list statvfs extension") | ||
|
||
vfs, err := sftp.StatVFS("/") | ||
if err != nil { | ||
t.Fatal(err) | ||
|