mirror of
https://github.com/restic/restic.git
synced 2026-09-01 10:17:14 +00:00
reduce usages of globalOptions variable
This commit is contained in:
@@ -338,7 +338,7 @@ func TestRestoreWithPermissionFailure(t *testing.T) {
|
||||
snapshots := testListSnapshots(t, env.gopts, 1)
|
||||
|
||||
_ = withRestoreGlobalOptions(func() error {
|
||||
globalOptions.stderr = io.Discard
|
||||
env.gopts.stderr = io.Discard
|
||||
testRunRestore(t, env.gopts, filepath.Join(env.base, "restore"), snapshots[0].String())
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user