1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00

device_tests: update test_bip32_speed cache-speed ratio to 1.2x

This commit is contained in:
Pavol Rusnak 2018-05-28 16:58:11 +02:00
parent ee21733f20
commit 2ab4751dcb
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -50,7 +50,6 @@ class TestBip32Speed(TrezorTest):
print("DEPTH", depth, "EXPECTED DELAY", expected, "REAL DELAY", delay)
assert delay <= expected
@pytest.mark.skip_t2
def test_cache(self):
self.setup_mnemonic_nopin_nopassphrase()
@ -67,5 +66,5 @@ class TestBip32Speed(TrezorTest):
print("NOCACHE TIME", nocache_time)
print("CACHED TIME", cache_time)
# Cached time expected to be at least 2x faster
assert cache_time <= nocache_time / 2.
# Cached time expected to be at least 1.2x faster
assert cache_time <= nocache_time / 1.2