Skip to content
Snippets Groups Projects
Verified Commit 567f0965 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: ci pipeline

parent b9ccf3de
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ import (
"time"
)
func startTestSMTPDockerImageAndContainer(t *testing.T, host string, port string, ctx context.Context) error {
func startTestSMTPDockerImageAndContainer(t *testing.T, port string, ctx context.Context) error {
t.Helper()
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
......@@ -32,6 +32,8 @@ func startTestSMTPDockerImageAndContainer(t *testing.T, host string, port string
//_, _ = io.Copy(os.Stdout, reader)
_ = reader
host, _, _ := net.SplitHostPort(cli.DaemonHost())
hostConfig := &container.HostConfig{
PortBindings: nat.PortMap{
"1025/tcp": []nat.PortBinding{
......@@ -120,7 +122,7 @@ func TestMailRunner(t *testing.T) {
done := make(chan bool)
go func() {
err = startTestSMTPDockerImageAndContainer(t, host, portAsString, ctx)
err = startTestSMTPDockerImageAndContainer(t, portAsString, ctx)
if err != nil {
t.Errorf("Unexpected error: %v", err)
cancel()
......
......@@ -14,7 +14,7 @@ import (
"time"
)
func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string, volume string, ctx context.Context) error {
func startSFTPTestDockerImageAndContainer(t *testing.T, port string, volume string, ctx context.Context) error {
t.Helper()
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
......@@ -33,6 +33,8 @@ func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string
//_, _ = io.Copy(os.Stdout, reader)
_ = reader
host, _, _ := net.SplitHostPort(cli.DaemonHost())
hostConfig := &container.HostConfig{
PortBindings: nat.PortMap{
"22/tcp": []nat.PortBinding{
......@@ -120,7 +122,7 @@ func TestSFTPCRunnerLocalToRemote(t *testing.T) {
done := make(chan bool)
go func() {
err = startSFTPTestDockerImageAndContainer(t, host, portAsString, "", ctx)
err = startSFTPTestDockerImageAndContainer(t, "portAsString, "", ctx)
if err != nil {
t.Errorf("Unexpected error: %v", err)
cancel()
......@@ -225,7 +227,7 @@ func TestSFTPCRunnerRemoteToLocal(t *testing.T) {
done := make(chan bool)
go func() {
err = startSFTPTestDockerImageAndContainer(t, host, portAsString, tempSrcDir, ctx)
err = startSFTPTestDockerImageAndContainer(t, portAsString, tempSrcDir, ctx)
if err != nil {
t.Errorf("Unexpected error: %v", err)
cancel()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment