##// END OF EJS Templates
tests: use pattern matching to mask `ECONNREFUSED` messages...
tests: use pattern matching to mask `ECONNREFUSED` messages The second and third one of these in `test-http-proxy.t` was failing on Windows. The others were found by grep and by failed tests when output was matched and an attempt was made to emit the mask pattern. The first clonebundles failure on Windows emitted: error fetching bundle: [WinError 10061] $ECONNREFUSED$ We should probably stringify that better to get rid of the "[WinError 10061]" part.

File last commit:

r49801:642e31cb default
r52835:73a43fe3 default
Show More
mocktime.py
18 lines | 400 B | text/x-python | PythonLexer
Jun Wu
test-patchbomb: use mocktime...
r34317 import os
import time
Augie Fackler
formatting: blacken the codebase...
r43346
Gregory Szorc
py3: use class X: instead of class X(object):...
r49801 class mocktime:
Jun Wu
test-patchbomb: use mocktime...
r34317 def __init__(self, increment):
self.time = 0
self.increment = [float(s) for s in increment.split()]
self.pos = 0
def __call__(self):
self.time += self.increment[self.pos % len(self.increment)]
self.pos += 1
return self.time
Augie Fackler
formatting: blacken the codebase...
r43346
Jun Wu
test-patchbomb: use mocktime...
r34317 def uisetup(ui):
time.time = mocktime(os.environ.get('MOCKTIME', '0.1'))