Skip to content

Commit bc23244

Browse files
committed
fix test
1 parent c49e745 commit bc23244

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/orchestrator/repo/repo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestBackup(t *testing.T) {
4848
Password: "test",
4949
CommandPrefix: &v1.CommandPrefix{
5050
IoNice: v1.CommandPrefix_IO_BEST_EFFORT_LOW,
51-
CpuNice: v1.CommandPrefix_CPU_HIGH,
51+
CpuNice: v1.CommandPrefix_CPU_LOW,
5252
},
5353
},
5454
plan: &v1.Plan{

pkg/restic/restic_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestResticBackup(t *testing.T) {
9191
name: "with wrapper process",
9292
paths: []string{testData},
9393
opts: []GenericOption{
94-
WithWrapperProcess("nice", "-n", "19"),
94+
WithPrefixCommand("nice", "-n", "19"),
9595
},
9696
files: 100,
9797
unixOnly: true,
@@ -100,7 +100,7 @@ func TestResticBackup(t *testing.T) {
100100
name: "with invalid wrapper process",
101101
paths: []string{testData},
102102
opts: []GenericOption{
103-
WithWrapperProcess("invalid-wrapper"),
103+
WithPrefixCommand("invalid-wrapper"),
104104
},
105105
wantErr: true,
106106
},

0 commit comments

Comments
 (0)