@@ -149,7 +149,7 @@ func TestScaleUpAndDown(t *testing.T) {
149
149
operator := getClient (t , totalHashRanges , node0Address )
150
150
require .NoError (t , operator .CreateSnapshots (ctx ))
151
151
152
- requireExpectedFiles (ctx , t , bucket , "hr_" , minioClient ,
152
+ requireExpectedFiles (ctx , t , "hr_" , minioClient ,
153
153
regexp .MustCompile ("^hr_0_s_0_1.snapshot$" ),
154
154
regexp .MustCompile ("^hr_1_s_0_1.snapshot$" ),
155
155
regexp .MustCompile ("^hr_2_s_0_1.snapshot$" ),
@@ -240,7 +240,7 @@ func TestGetPutAddressBroadcast(t *testing.T) {
240
240
operator := getClient (t , totalHashRanges , node0Address )
241
241
require .NoError (t , operator .CreateSnapshots (ctx ))
242
242
243
- requireExpectedFiles (ctx , t , bucket , "hr_" , minioClient ,
243
+ requireExpectedFiles (ctx , t , "hr_" , minioClient ,
244
244
regexp .MustCompile ("^hr_0_s_0_1.snapshot$" ),
245
245
regexp .MustCompile ("^hr_1_s_0_1.snapshot$" ),
246
246
regexp .MustCompile ("^hr_2_s_0_1.snapshot$" ),
@@ -351,7 +351,7 @@ func TestIncrementalSnapshots(t *testing.T) {
351
351
352
352
require .NoError (t , c .CreateSnapshots (ctx ))
353
353
// we expect one hash range to be empty so the file won't be uploaded
354
- requireExpectedFiles (ctx , t , bucket , "hr_" , minioClient ,
354
+ requireExpectedFiles (ctx , t , "hr_" , minioClient ,
355
355
regexp .MustCompile ("^hr_1_s_0_1.snapshot$" ),
356
356
regexp .MustCompile ("^hr_2_s_0_1.snapshot$" ),
357
357
regexp .MustCompile ("^hr_3_s_0_1.snapshot$" ),
@@ -363,7 +363,7 @@ func TestIncrementalSnapshots(t *testing.T) {
363
363
require .Equal (t , []bool {true , true , true , false , true }, exists )
364
364
365
365
require .NoError (t , c .CreateSnapshots (ctx ))
366
- requireExpectedFiles (ctx , t , bucket , "hr_" , minioClient ,
366
+ requireExpectedFiles (ctx , t , "hr_" , minioClient ,
367
367
regexp .MustCompile ("^hr_1_s_0_1.snapshot$" ),
368
368
regexp .MustCompile ("^hr_2_s_0_1.snapshot$" ),
369
369
regexp .MustCompile ("^hr_3_s_0_1.snapshot$" ),
@@ -579,7 +579,7 @@ func getContents(ctx context.Context, bucket, prefix string, client *minio.Clien
579
579
}
580
580
581
581
func requireExpectedFiles (
582
- ctx context.Context , t * testing.T , bucket , prefix string , client * minio.Client , expectedFiles ... * regexp.Regexp ,
582
+ ctx context.Context , t * testing.T , prefix string , client * minio.Client , expectedFiles ... * regexp.Regexp ,
583
583
) {
584
584
t .Helper ()
585
585
files , err := getContents (ctx , bucket , prefix , client )
0 commit comments