mirror of
https://github.com/restic/restic.git
synced 2025-08-22 13:17:48 +00:00
sftp: Limit concurrent backend operations
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user