Skip to content

Commit 07cd343

Browse files
committed
lint formatting
1 parent c25d17b commit 07cd343

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

frametests/definition/options.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ func (o *ContainerOpts) Setup(opts ...ContainerOption) {
3636
}
3737
}
3838

39-
func (o *ContainerOpts) Configure(ctx context.Context, ntwk *testcontainers.DockerNetwork, containerRequest *testcontainers.ContainerRequest) {
39+
func (o *ContainerOpts) Configure(
40+
ctx context.Context,
41+
ntwk *testcontainers.DockerNetwork,
42+
containerRequest *testcontainers.ContainerRequest,
43+
) {
4044
if o.EnableLogging {
4145
containerRequest.LogConsumerCfg = LogConfig(ctx, o.LoggingTimeout)
4246
}
@@ -53,11 +57,13 @@ func (o *ContainerOpts) Configure(ctx context.Context, ntwk *testcontainers.Dock
5357
ntwk.Name: o.NetworkAliases,
5458
}
5559
}
56-
5760
}
5861

59-
func (o *ContainerOpts) ConfigurationExtend(ctx context.Context, ntwk *testcontainers.DockerNetwork, containerCustomize ...testcontainers.ContainerCustomizer) []testcontainers.ContainerCustomizer {
60-
62+
func (o *ContainerOpts) ConfigurationExtend(
63+
ctx context.Context,
64+
ntwk *testcontainers.DockerNetwork,
65+
containerCustomize ...testcontainers.ContainerCustomizer,
66+
) []testcontainers.ContainerCustomizer {
6167
if o.EnableLogging {
6268
containerCustomize = append(
6369
containerCustomize,
@@ -71,7 +77,6 @@ func (o *ContainerOpts) ConfigurationExtend(ctx context.Context, ntwk *testconta
7177
hostConfig.NetworkMode = HostNetworkingMode
7278
}))
7379
} else {
74-
7580
containerCustomize = append(containerCustomize,
7681
testcontainers.WithExposedPorts(o.Port),
7782
network.WithNetwork([]string{ntwk.Name}, ntwk),

frametests/deps/testnats/nats.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import (
55
"fmt"
66
"net"
77

8-
"github.com/pitabwire/frame"
9-
"github.com/pitabwire/frame/frametests/definition"
108
"github.com/pitabwire/util"
119
"github.com/testcontainers/testcontainers-go"
1210
tcNats "github.com/testcontainers/testcontainers-go/modules/nats"
11+
12+
"github.com/pitabwire/frame"
13+
"github.com/pitabwire/frame/frametests/definition"
1314
)
1415

1516
const (

frametests/deps/testvalkey/valkey.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import (
55
"fmt"
66
"net"
77

8-
"github.com/pitabwire/frame"
9-
"github.com/pitabwire/frame/frametests/definition"
108
"github.com/pitabwire/util"
119
"github.com/testcontainers/testcontainers-go"
1210
tcValKey "github.com/testcontainers/testcontainers-go/modules/valkey"
11+
12+
"github.com/pitabwire/frame"
13+
"github.com/pitabwire/frame/frametests/definition"
1314
)
1415

1516
const (
@@ -65,7 +66,6 @@ func (d *valKeyDependancy) Container() testcontainers.Container {
6566
}
6667

6768
func (d *valKeyDependancy) Setup(ctx context.Context, ntwk *testcontainers.DockerNetwork) error {
68-
6969
containerCustomize := d.opts.ConfigurationExtend(ctx, ntwk)
7070
valkeyContainer, err := tcValKey.Run(ctx, d.opts.ImageName, containerCustomize...)
7171

0 commit comments

Comments
 (0)