File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
import logging
6
6
import platform
7
7
import random
8
+ import re
8
9
import socket
9
10
import ssl
10
11
import sys
@@ -1608,16 +1609,19 @@ async def run_client():
1608
1609
)
1609
1610
# Iteration 3
1610
1611
self .assertEqual (
1611
- [record .getMessage () for record in logs .records ][4 :- 1 ],
1612
+ [
1613
+ re .sub (r"[0-9\.]+ seconds" , "X seconds" , record .getMessage ())
1614
+ for record in logs .records
1615
+ ][4 :- 1 ],
1612
1616
[
1613
1617
"connection rejected (503 Service Unavailable)" ,
1614
1618
"connection closed" ,
1615
- "! connect failed; reconnecting in 0.0 seconds" ,
1619
+ "! connect failed; reconnecting in X seconds" ,
1616
1620
]
1617
1621
+ [
1618
1622
"connection rejected (503 Service Unavailable)" ,
1619
1623
"connection closed" ,
1620
- "! connect failed again; retrying in 0 seconds" ,
1624
+ "! connect failed again; retrying in X seconds" ,
1621
1625
]
1622
1626
* ((len (logs .records ) - 8 ) // 3 )
1623
1627
+ [
You can’t perform that action at this time.
0 commit comments