[issue2551202] mysqlRestTest.testRestRateLimit fails on slow machine

Ralf Schlatterbeck <[email protected]> Tue, 03 May 2022 11:39:46 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from Ralf Schlatterbeck:

On a slow machine I'm getting the following failed error for mysql:

        # value will be almost 60. Allow 1-2 seconds for all 20 rounds.
        self.assertAlmostEqual(
            float(self.server.client.additional_headers["X-RateLimit-Reset"]),
>           59, delta=1)
E       AssertionError: 57.706104 != 59 within 1 delta (1.2938959999999966 difference)

test/rest_common.py:1121: AssertionError

Should we live with this failing occasionally or make the error margin a little higher (I'd suggest 5 which should never fail and is about 10%)?

----------
messages: 7489
nosy: rouilj, schlatterbeck
severity: normal
status: new
title: mysqlRestTest.testRestRateLimit fails on slow machine

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551202>
_________________________________________________