home
·
contact
·
privacy
projects
/
ircplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37ff095
)
More test refactoring.
master
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Nov 2025 03:10:58 +0000
(
04:10
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Nov 2025 03:10:58 +0000
(
04:10
+0100)
src/tests/_timeout_retries.test
patch
|
blob
|
history
diff --git
a/src/tests/_timeout_retries.test
b/src/tests/_timeout_retries.test
index be14b598a10eb3bd0e5ad924055597b7106e2b1c..2492696000a930ef2e89d0cbcfd566dc10c80eb7 100644
(file)
--- a/
src/tests/_timeout_retries.test
+++ b/
src/tests/_timeout_retries.test
@@
-23,8
+23,18
@@
log 1 $ connection_state set to: [connecting]
× fake-testing-timeout
log 1 $ connection_state set to: [failed to connect: FAKE TESTING TIMEOUT]
× fake-testing-timeout
log 1 $ connection_state set to: [failed to connect: FAKE TESTING TIMEOUT]
+× retry-in-1
+log 1 $ will retry connecting in 1 seconds
+
+× port-10000-w-context
+insert identifiers : +2
+log 1 $ port set to: [10000]
+insert fake-testing-timeout : +1
+
+× port-10001
+log 1 $ port set to: [10001]
+
× conns-init
× conns-init
-log 1 $ port set to: [10003]
log 1 $ nick_wanted set to: [foo]
log 1 $ user_wanted set to: [foobarbazquux]
log 1 $ realname set to: [baz]
log 1 $ nick_wanted set to: [foo]
log 1 $ user_wanted set to: [foobarbazquux]
log 1 $ realname set to: [baz]
@@
-46,28
+56,27
@@
log 1 > NICK :foo
> /connect foo.bar.baz:10003 foo:bar baz:foobarbazquux
insert clientwin-init
log 1 $ hostname set to: [foo.bar.baz]
> /connect foo.bar.baz:10003 foo:bar baz:foobarbazquux
insert clientwin-init
log 1 $ hostname set to: [foo.bar.baz]
+log 1 $ port set to: [10003]
insert conns-init
# check increase of retry waits
insert conns-init
# check increase of retry waits
-insert connecting
: +1
+insert connecting
log 2 $ attempting connection to foo.bar.baz:10003 identifying with …
log 2 $ attempting connection to foo.bar.baz:10003 identifying with …
-insert identifiers
: +2
+insert identifiers
log 1 $ port set to: [10002]
insert fake-testing-timeout
log 1 $ port set to: [10002]
insert fake-testing-timeout
-log 1 $ will retry connecting in 1 seconds
+insert retry-in-1
#
#
-insert connecting
: +1
+insert connecting
log 2 $ attempting connection to foo.bar.baz:10002 identifying with …
log 2 $ attempting connection to foo.bar.baz:10002 identifying with …
-insert identifiers
: +2
-log 1 $ port set to: [10001]
+insert identifiers
+insert port-10001
insert fake-testing-timeout
log 1 $ will retry connecting in 2 seconds
#
insert fake-testing-timeout
log 1 $ will retry connecting in 2 seconds
#
-insert connecting
: +1
+insert connecting
log 2 $ attempting connection to foo.bar.baz:10001 identifying with …
log 2 $ attempting connection to foo.bar.baz:10001 identifying with …
-insert identifiers : +2
-log 1 $ port set to: [10000]
-insert fake-testing-timeout
+insert port-10000-w-context
log 1 $ will retry connecting in 4 seconds
# check connecting works with TestingClient port finally reduced to 10000
log 1 $ will retry connecting in 4 seconds
# check connecting works with TestingClient port finally reduced to 10000
@@
-84,7
+93,7
@@
log 1 $ connection_state set to: [broken: no timely PONG from server]
insert isupport-clear
log 1 $ connection_state set to: []
log 2 $ DISCONNECTED
insert isupport-clear
log 1 $ connection_state set to: []
log 2 $ DISCONNECTED
-log 1 $ will retry connecting in 1 seconds
+insert retry-in-1
# check /disconnect aborts retry chain
> /window 1
# check /disconnect aborts retry chain
> /window 1
@@
-96,14
+105,12
@@
wait 1
> /connect baz.bar.foo:10001 foo:bar baz:foobarbazquux
insert clientwin-init : +3
log 3 $ hostname set to: [baz.bar.foo]
> /connect baz.bar.foo:10001 foo:bar baz:foobarbazquux
insert clientwin-init : +3
log 3 $ hostname set to: [baz.bar.foo]
-log 3 $ port set to: [10001]
-insert conns-init
1
: +3
+insert port-10001 : +3
+insert conns-init : +3
insert connecting : +3
log 4 $ attempting connection to baz.bar.foo:10001 identifying with …
insert connecting : +3
log 4 $ attempting connection to baz.bar.foo:10001 identifying with …
-insert identifiers : +4
-log 3 $ port set to: [10000]
-insert fake-testing-timeout : +3
-log 3 $ will retry connecting in 1 seconds
+insert port-10000-w-context : +3
+insert retry-in-1 : +3
# during retry-wait /reconnect, then wait announced duration to check nothing else happens
> /window 3
# during retry-wait /reconnect, then wait announced duration to check nothing else happens
> /window 3