Skip to content

Commit

Permalink
fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
laskoviymishka committed Dec 19, 2023
1 parent 89c28f2 commit cf89f03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions modules/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ import (
"github.com/testcontainers/testcontainers-go/wait"
)

var (
//go:embed mounts/zk_config.xml.tpl
zookeeperConfigTpl string
)
//go:embed mounts/zk_config.xml.tpl
var zookeeperConfigTpl string

const (
defaultUser = "default"
Expand Down Expand Up @@ -122,7 +120,7 @@ func WithZookeeper(host, port string) testcontainers.CustomizeRequestOption {
cf := testcontainers.ContainerFile{
HostFilePath: f.Name(),
ContainerFilePath: "/etc/clickhouse-server/config.d/zookeeper_config.xml",
FileMode: 0755,
FileMode: 0o755,
}
req.Files = append(req.Files, cf)
}
Expand Down
4 changes: 2 additions & 2 deletions modules/clickhouse/clickhouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ package clickhouse

import (
"context"
"github.com/docker/go-connections/nat"
"github.com/testcontainers/testcontainers-go/wait"
"path/filepath"
"testing"

ch "github.com/ClickHouse/clickhouse-go/v2"
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
"github.com/cenkalti/backoff/v4"
"github.com/docker/go-connections/nat"
"github.com/stretchr/testify/assert"

"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/wait"
)

const (
Expand Down

0 comments on commit cf89f03

Please sign in to comment.