Other: require go 1.18 and update to golangci-lint to latest revision + fixes.

This commit is contained in:
Xavier Michelon
2022-07-25 16:29:48 +02:00
committed by Jakub
parent 62a589b6ad
commit 0a1f349901
13 changed files with 96 additions and 37 deletions

View File

@ -13,7 +13,7 @@ check-go:
check-godog:
@which godog || $(MAKE) install-godog
install-godog: check-go
go get github.com/cucumber/godog/cmd/godog@v0.12.1
go install github.com/cucumber/godog/cmd/godog@v0.12.5
test: test-bridge
test-bridge: FEATURES ?= features

View File

@ -33,6 +33,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/text/cases"
"golang.org/x/text/language"
)
type SMTPClient struct {
@ -82,7 +84,7 @@ func (c *SMTPClient) SendCommands(commands ...string) *SMTPResponse {
for _, command := range commands {
command = strings.ReplaceAll(command, "[userAddress]", c.address)
command = strings.ReplaceAll(command, "[userAddress|capitalize]", strings.Title(c.address))
command = strings.ReplaceAll(command, "[userAddress|capitalize]", cases.Title(language.Und).String(c.address))
tstart := time.Now()