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

fix: ci pipeline

parent f45b1aa3
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ func startTestSMTPDockerImageAndContainer(t *testing.T, host string, port string
Timeout: &timeout,
Signal: "SIGKILL",
}
newCtx, _ := context.WithTimeout(context.Background(), 20*time.Second)
newCtx, _ := context.WithTimeout(context.Background(), 60*time.Second)
if err := cli.ContainerStop(newCtx, resp.ID, stopOptions); err != nil {
t.Errorf("ContainerStop returned error: %v", err)
}
......@@ -107,7 +107,7 @@ func TestMailRunner(t *testing.T) {
time.Sleep(1 * time.Second)
})
host := "0.0.0.0"
host := "172.17.0.1"
listener, err := net.Listen("tcp", host+":0")
if err != nil {
......@@ -128,7 +128,7 @@ func TestMailRunner(t *testing.T) {
done <- true
}()
waitCtx, waitCancel := context.WithTimeout(ctx, 30*time.Second)
waitCtx, waitCancel := context.WithTimeout(ctx, 60*time.Second)
defer waitCancel()
for {
conn, err := net.DialTimeout("tcp", net.JoinHostPort(host, portAsString), 1*time.Second)
......
......@@ -8,7 +8,6 @@ import (
"github.com/docker/docker/client"
"github.com/docker/go-connections/nat"
"github.com/stretchr/testify/assert"
"io"
"net"
"os"
"testing"
......@@ -31,7 +30,7 @@ func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string
}
//if debug image pull, comment out the following lines
_, _ = io.Copy(os.Stdout, reader)
//_, _ = io.Copy(os.Stdout, reader)
_ = reader
hostConfig := &container.HostConfig{
......@@ -70,7 +69,7 @@ func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string
Timeout: &timeout,
Signal: "SIGKILL",
}
newCtx, _ := context.WithTimeout(context.Background(), 20*time.Second)
newCtx, _ := context.WithTimeout(context.Background(), 60*time.Second)
if err := cli.ContainerStop(newCtx, resp.ID, stopOptions); err != nil {
t.Errorf("ContainerStop returned error: %v", err)
}
......@@ -108,7 +107,7 @@ func TestSFTPCRunnerLocalToRemote(t *testing.T) {
time.Sleep(1 * time.Second)
})
host := "0.0.0.0"
host := "172.17.0.1"
listener, err := net.Listen("tcp", host+":0")
if err != nil {
......@@ -129,7 +128,7 @@ func TestSFTPCRunnerLocalToRemote(t *testing.T) {
done <- true
}()
waitCtx, waitCancel := context.WithTimeout(ctx, 30*time.Second)
waitCtx, waitCancel := context.WithTimeout(ctx, 60*time.Second)
defer waitCancel()
for {
conn, err := net.DialTimeout("tcp", net.JoinHostPort(host, portAsString), 1*time.Second)
......@@ -234,7 +233,7 @@ func TestSFTPCRunnerRemoteToLocal(t *testing.T) {
done <- true
}()
waitCtx, waitCancel := context.WithTimeout(ctx, 30*time.Second)
waitCtx, waitCancel := context.WithTimeout(ctx, 60*time.Second)
defer waitCancel()
for {
conn, err := net.DialTimeout("tcp", net.JoinHostPort(host, portAsString), 1*time.Second)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment