Log realized expectations.

This commit is contained in:
Pavel Minaev 2018-10-05 08:03:43 -07:00 committed by Karthik Nadig
parent d5b34e6fab
commit 0816cc4d2e

View file

@ -68,7 +68,9 @@ class Timeline(object):
'Use >> to sequence an expectation against an occurrence to establish a lower bound.'
)
print('Waiting for %r' % expectation)
return self.wait_until(lambda: expectation in self)
occ = self.wait_until(lambda: expectation in self)
print('Expectation %r realized by %r' % (expectation, occ))
return occ
def _record(self, occurrence):
t = timestamp()