diff --git a/app/main_test.go b/app/main_test.go index 44b8707..7914fed 100644 --- a/app/main_test.go +++ b/app/main_test.go @@ -47,7 +47,7 @@ smtpd-proxy: done := make(chan struct{}) go func() { <-done - serverCh <- cmd.ServerStopSignal + serverCh <- cmd.ServerStopSignal }() finished := make(chan struct{}) @@ -97,7 +97,7 @@ smtpd-proxy: } func waitForPortListenStart(ctx context.Context, t *testing.T, port int) (conn net.Conn) { - var d net.Dialer + var d net.Dialer var err error addr := fmt.Sprintf("%s:%d", bindHost, port) poll := time.NewTicker(50 * time.Millisecond) diff --git a/go.mod b/go.mod index be5575d..202cf16 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/ses v1.18.1 github.com/creasty/defaults v1.7.0 github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead - github.com/emersion/go-smtp v0.18.1 + github.com/emersion/go-smtp v0.19.0 github.com/hashicorp/go-multierror v1.1.1 github.com/jessevdk/go-flags v1.5.0 github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible diff --git a/go.sum b/go.sum index bcddf8c..e22f7dc 100644 --- a/go.sum +++ b/go.sum @@ -58,8 +58,8 @@ github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21/go.mod h1:iL2twTeMvZnrg54ZoPDNfJaJaqy0xIQFuBdrLsmspwQ= github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead h1:fI1Jck0vUrXT8bnphprS1EoVRe2Q5CKCX8iDlpqjQ/Y= github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead/go.mod h1:iL2twTeMvZnrg54ZoPDNfJaJaqy0xIQFuBdrLsmspwQ= -github.com/emersion/go-smtp v0.18.1 h1:4DFV0jxKhq0Gqt/Br3BRHyKZy5TStk6NIMHAx6GE/LA= -github.com/emersion/go-smtp v0.18.1/go.mod h1:qm27SGYgoIPRot6ubfQ/GpiPy/g3PaZAVRxiO/sDUgQ= +github.com/emersion/go-smtp v0.19.0 h1:iVCDtR2/JY3RpKoaZ7u6I/sb52S3EzfNHO1fAWVHgng= +github.com/emersion/go-smtp v0.19.0/go.mod h1:qm27SGYgoIPRot6ubfQ/GpiPy/g3PaZAVRxiO/sDUgQ= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= diff --git a/tests/ses_forwarder_test.go b/tests/ses_forwarder_test.go index c4f0017..da3fd4a 100644 --- a/tests/ses_forwarder_test.go +++ b/tests/ses_forwarder_test.go @@ -168,7 +168,7 @@ smtpd-proxy: func iniFakeSMTPContainer(ctx context.Context) (container tc.Container, err error) { vol, _ := filepath.Abs(".volume") _ = os.Mkdir(vol, 0o755) - _ = os.RemoveAll(filepath.Join(vol, "./state/ses")) + _ = os.RemoveAll(vol + "/state/ses") localstackReq := tc.ContainerRequest{ Image: "localstack/localstack:2.3.2", ExposedPorts: []string{"4566/tcp"},