mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:01:48 +00:00
local: Limit concurrent backend operations
Use a limit of 2 similar to the filereader concurrency in the archiver.
This commit is contained in:
@@ -27,7 +27,7 @@ func TestNoSpacePermanent(t *testing.T) {
|
||||
dir, cleanup := rtest.TempDir(t)
|
||||
defer cleanup()
|
||||
|
||||
be, err := Open(context.Background(), Config{Path: dir})
|
||||
be, err := Open(context.Background(), Config{Path: dir, Connections: 2})
|
||||
rtest.OK(t, err)
|
||||
defer func() {
|
||||
rtest.OK(t, be.Close())
|
||||
|
||||
Reference in New Issue
Block a user