Project

General

Profile

Bug #8847

test_store_async échoue parfois (et souvent chez moi)

Added by Benjamin Dauvergne over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
03 November 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Test can fail if atomic_write() is slow, but behaviour is correct. Foobar.keys() will always return a non True value as the file first created by get_new_id(create=True) and not by atomic_write().


Files

0001-tests-fix-test_store_async-8847.patch (1.05 KB) 0001-tests-fix-test_store_async-8847.patch Benjamin Dauvergne, 03 November 2015 12:22 AM

Associated revisions

Revision a01aa587 (diff)
Added by Benjamin Dauvergne over 7 years ago

tests: fix test_store_async (#8847)

Test can fail if atomic_write() is slow, but behaviour is correct. Foobar.keys()
will always return a non True value as the file is first created by
get_new_id(create=True) and not by atomic_write().

History

#2

Updated by Benjamin Dauvergne over 7 years ago

  • Subject changed from test_store_async sometimes fails to test_store_async échoue parfois (et souvent chez moi)
#3

Updated by Frédéric Péters over 7 years ago

ok (curieux que sur ma vieille machine ça n'échoue jamais).

Rewrapper la description du commit à 80 caractères.

#4

Updated by Benjamin Dauvergne over 7 years ago

  • Status changed from Nouveau to En cours
#5

Updated by Benjamin Dauvergne over 7 years ago

C'est pas tellement que qu'atomic_write est lent mais que le thread principal est beaucoup plus rapide et ne "yield" pas une seule fois entre le get_new_id() et le Foobar.get(1).

#6

Updated by Benjamin Dauvergne over 7 years ago

  • Status changed from En cours to Résolu (à déployer)
#7

Updated by Frédéric Péters over 7 years ago

  • Target version set to v1.20
#8

Updated by Frédéric Péters over 7 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF