From d28ee64264b0844fe8a64b99903bce6427847206 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Mon, 23 Oct 2023 11:46:16 +0200
Subject: [PATCH] fix: ci pipeline

---
 runnable-mail_test.go | 2 +-
 runnable-sftp_test.go | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/runnable-mail_test.go b/runnable-mail_test.go
index 65e814e..d7fb08c 100644
--- a/runnable-mail_test.go
+++ b/runnable-mail_test.go
@@ -16,7 +16,7 @@ import (
 func startTestSMTPDockerImageAndContainer(t *testing.T, host string, port string, ctx context.Context) error {
 	t.Helper()
 
-	cli, err := client.NewClientWithOpts(client.WithVersion("1.41"))
+	cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
 	if err != nil {
 		return err
 	}
diff --git a/runnable-sftp_test.go b/runnable-sftp_test.go
index 4ab86c7..d0ac05b 100644
--- a/runnable-sftp_test.go
+++ b/runnable-sftp_test.go
@@ -17,7 +17,7 @@ import (
 func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string, volume string, ctx context.Context) error {
 	t.Helper()
 
-	cli, err := client.NewClientWithOpts(client.WithVersion("1.41"))
+	cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
 	if err != nil {
 		return err
 	}
@@ -29,7 +29,7 @@ func startSFTPTestDockerImageAndContainer(t *testing.T, host string, port string
 		return err
 	}
 
-	// if debug image pull, comment out the following lines
+	//if debug image pull, comment out the following lines
 	//_, _ = io.Copy(os.Stdout, reader)
 	_ = reader
 
-- 
GitLab