Page MenuHomePhabricator

test_expired from dry_api_tests.DryCachedRequestTests fails randomly on AppVeyor
Closed, ResolvedPublic

Description

https://ci.appveyor.com/project/Ladsgroup/pywikibot-g4xqx/builds/30727532/job/e1em73exkrhtj4js#L7075

======================================================================
FAIL: test_expired (tests.dry_api_tests.DryCachedRequestTests)
Test if the request is expired.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\projects\pywikibot-g4xqx\tests\dry_api_tests.py", line 79, in test_expired
    datetime.datetime.utcnow() - datetime.timedelta(days=2)))
AssertionError: False is not true

Event Timeline

It seems this is also maxlag related

It seems this is also maxlag related

This is a dry api test which means there is no connection necessary

Change 592480 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] Show additional information with test_expired

https://gerrit.wikimedia.org/r/592480

Change 592480 merged by jenkins-bot:
[pywikibot/core@master] [tests] Show additional information with test_expired

https://gerrit.wikimedia.org/r/592480

Currently the following output is given:

======================================================================
FAIL: test_expired (tests.dry_api_tests.DryCachedRequestTests)
Test if the request is expired.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\pywikibot-g4xqx\tests\dry_api_tests.py", line 81, in test_expired
    msg='\nreq.expiry: {}, now: {}'.format(self.req.expiry, now))
AssertionError: False is not true : 
req.expiry: 1 day, 0:00:00, now: 2020-05-02 10:53:03.996670
----------------------------------------------------------------------

(https://ci.appveyor.com/project/Ladsgroup/pywikibot-g4xqx/builds/32598885/job/5kdexn5ve685m5ph#L5205)

Xqt claimed this task.

Haven't seen it for a long time.