Skip to content

Commit f9cd2db

Browse files
author
Joonas Bergius
committed
chore(templates): Update strings.Replace with strings.ReplaceAll
Signed-off-by: Joonas Bergius <[email protected]>
1 parent 4e5e170 commit f9cd2db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/provider/keyvalue-inmemory/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func TestListKeys(t *testing.T) {
320320

321321
func NewTestEnvironment(ctx context.Context, t testing.TB) (*TestEnvironment, error) {
322322
natsServer, err := startContainer(ctx)
323-
normalizedName := strings.Replace(t.Name(), "/", "-", -1)
323+
normalizedName := strings.ReplaceAll(t.Name(), "/", "-")
324324
testcontainers.CleanupContainer(t, natsServer.Container)
325325
if err != nil {
326326
return nil, err

templates/provider/keyvalue-inmemory/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func TestListKeys(t *testing.T) {
330330

331331
func NewTestEnvironment(ctx context.Context, t testing.TB) (*TestEnvironment, error) {
332332
natsServer, err := startContainer(ctx)
333-
normalizedName := strings.Replace(t.Name(), "/", "-", -1)
333+
normalizedName := strings.ReplaceAll(t.Name(), "/", "-")
334334
testcontainers.CleanupContainer(t, natsServer.Container)
335335
if err != nil {
336336
return nil, err

0 commit comments

Comments
 (0)