You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2026/09/06 07:53:55 UTC

(pekko-connectors) branch 1.4.x updated: Fix unit test related to ftp timeout (#1629) (#1883)

This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch 1.4.x
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git


The following commit(s) were added to refs/heads/1.4.x by this push:
     new 33afb9445 Fix unit test related to ftp timeout (#1629) (#1883)
33afb9445 is described below

commit 33afb9445923613d982b00b91e68f6240520829b
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sun Sep 6 08:53:50 2026 +0100

    Fix unit test related to ftp timeout (#1629) (#1883)
    
    * Fix unit test related to ftp timeout
    
    This PR fixes the ftp unit test issue reported in #1581 by increasing the timeout for the test to 4 seconds.
    
    * Increase timeout to 8s for slower github workers
    
    (cherry picked from commit 98f26fd80d89b5cc97528c15bc67a03b0e8cc9e7)
    
    Co-authored-by: Cristi <pr...@gmail.com>
---
 ftp/src/test/scala/docs/scaladsl/FtpExamplesSpec.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ftp/src/test/scala/docs/scaladsl/FtpExamplesSpec.scala b/ftp/src/test/scala/docs/scaladsl/FtpExamplesSpec.scala
index d15788478..5f2bcfea4 100644
--- a/ftp/src/test/scala/docs/scaladsl/FtpExamplesSpec.scala
+++ b/ftp/src/test/scala/docs/scaladsl/FtpExamplesSpec.scala
@@ -77,7 +77,7 @@ class FtpExamplesSpec
         .runWith(Ftp.toPath("file.txt", ftpSettings))
       // #storing
 
-      val ioResult = result.futureValue(timeout(Span(1, Seconds)))
+      val ioResult = result.futureValue(timeout(Span(8, Seconds)))
       ioResult should be(IOResult.createSuccessful(25))
 
       val p = fileExists("file.txt")
@@ -101,7 +101,7 @@ class FtpExamplesSpec
         .runWith(Ftp.toPath("file.txt.gz", ftpSettings))
       // #storing
 
-      val ioResult = result.futureValue(timeout(Span(1, Seconds)))
+      val ioResult = result.futureValue(timeout(Span(8, Seconds)))
       ioResult should be(IOResult.createSuccessful(61))
 
       val p = fileExists("file.txt.gz")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org