Skip to content

Commit 9ba2cce

Browse files
committed
chore: removing bucket parameter
1 parent 8735146 commit 9ba2cce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

node/node_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func TestScaleUpAndDown(t *testing.T) {
149149
operator := getClient(t, totalHashRanges, node0Address)
150150
require.NoError(t, operator.CreateSnapshots(ctx))
151151

152-
requireExpectedFiles(ctx, t, bucket, "hr_", minioClient,
152+
requireExpectedFiles(ctx, t, "hr_", minioClient,
153153
regexp.MustCompile("^hr_0_s_0_1.snapshot$"),
154154
regexp.MustCompile("^hr_1_s_0_1.snapshot$"),
155155
regexp.MustCompile("^hr_2_s_0_1.snapshot$"),
@@ -240,7 +240,7 @@ func TestGetPutAddressBroadcast(t *testing.T) {
240240
operator := getClient(t, totalHashRanges, node0Address)
241241
require.NoError(t, operator.CreateSnapshots(ctx))
242242

243-
requireExpectedFiles(ctx, t, bucket, "hr_", minioClient,
243+
requireExpectedFiles(ctx, t, "hr_", minioClient,
244244
regexp.MustCompile("^hr_0_s_0_1.snapshot$"),
245245
regexp.MustCompile("^hr_1_s_0_1.snapshot$"),
246246
regexp.MustCompile("^hr_2_s_0_1.snapshot$"),
@@ -351,7 +351,7 @@ func TestIncrementalSnapshots(t *testing.T) {
351351

352352
require.NoError(t, c.CreateSnapshots(ctx))
353353
// 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,
355355
regexp.MustCompile("^hr_1_s_0_1.snapshot$"),
356356
regexp.MustCompile("^hr_2_s_0_1.snapshot$"),
357357
regexp.MustCompile("^hr_3_s_0_1.snapshot$"),
@@ -363,7 +363,7 @@ func TestIncrementalSnapshots(t *testing.T) {
363363
require.Equal(t, []bool{true, true, true, false, true}, exists)
364364

365365
require.NoError(t, c.CreateSnapshots(ctx))
366-
requireExpectedFiles(ctx, t, bucket, "hr_", minioClient,
366+
requireExpectedFiles(ctx, t, "hr_", minioClient,
367367
regexp.MustCompile("^hr_1_s_0_1.snapshot$"),
368368
regexp.MustCompile("^hr_2_s_0_1.snapshot$"),
369369
regexp.MustCompile("^hr_3_s_0_1.snapshot$"),
@@ -579,7 +579,7 @@ func getContents(ctx context.Context, bucket, prefix string, client *minio.Clien
579579
}
580580

581581
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,
583583
) {
584584
t.Helper()
585585
files, err := getContents(ctx, bucket, prefix, client)

0 commit comments

Comments
 (0)