[PATCH] test-ssh: handle very slow ssh transfer rate

timeless timeless at gmail.com
Thu Oct 14 03:02:34 CDT 2010


I'm slowing my system down to a crawl, which caused this test to fail
(somewhat randomly).
The test expected KB/sec or MB/sec, but got bytes/sec

ERROR: /Users/timeless/devel/intevation.org/hg-crew/tests/test-ssh.t
output changed
--- /Users/timeless/devel/intevation.org/hg-crew/tests/test-ssh.t
+++ /Users/timeless/devel/intevation.org/hg-crew/tests/test-ssh.t.err
@@ -62,7 +62,7 @@
   $ hg clone -e "python ./dummyssh" --uncompressed
ssh://user@dummy/remote local-stream
   streaming all changes
   4 files to transfer, 392 bytes of data
-  transferred 392 bytes in * seconds (*B/sec) (glob)
+  transferred 392 bytes in 0.6 seconds (677 bytes/sec)
   updating to branch default
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd local-stream


# HG changeset patch
# User timeless <timeless at gmail.com>
# Date 1287042999 -10800
# Node ID 6162b11b16aa304a106b713fb5b83d666a90843f
# Parent  80a3d1121c106fd972fa84423f55b2ce2e9407c9
test-ssh: handle very slow ssh transfer rate

diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -62,7 +62,7 @@ clone remote via stream
   $ hg clone -e "python ./dummyssh" --uncompressed
ssh://user@dummy/remote local-stream
   streaming all changes
   4 files to transfer, 392 bytes of data
-  transferred 392 bytes in * seconds (*B/sec) (glob)
+  transferred 392 bytes in * seconds (*/*) (glob)
   updating to branch default
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd local-stream


More information about the Mercurial-devel mailing list