sftp: Limit concurrent backend operations
This commit is contained in:
parent
cd783358d3
commit
ece06f125e
6 changed files with 112 additions and 41 deletions
|
@ -43,9 +43,10 @@ func TestLayout(t *testing.T) {
|
|||
|
||||
repo := filepath.Join(path, "repo")
|
||||
be, err := sftp.Open(context.TODO(), sftp.Config{
|
||||
Command: fmt.Sprintf("%q -e", sftpServer),
|
||||
Path: repo,
|
||||
Layout: test.layout,
|
||||
Command: fmt.Sprintf("%q -e", sftpServer),
|
||||
Path: repo,
|
||||
Layout: test.layout,
|
||||
Connections: 5,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue