rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
199 stars 55 forks source link

test_rnpcfg_get_expiration flaky #1876

Closed andrey-utkin closed 1 year ago

andrey-utkin commented 2 years ago

Description

rnp_tests.test_rnpcfg_get_expiration sometimes fails in CI for reasons unrelated to the particular pull request. This looks like the test itself is unreliable.

Steps to Reproduce

This happens from time to time in CI, not consistently. Re-run CI repeatedly to trigger?

Expected Behavior

The test always passes or is excluded/dropped.

Actual Behavior

[ RUN      ] rnp_tests.test_rnpcfg_get_expiration
/tmp/cirrus-ci-build/src/tests/utils-rnpcfg.cpp:139: Failure
Expected equality of these values:
  (raw_expiry)
    Which is: 567238
  (rawtime - basetime)
    Which is: 567239
[  FAILED  ] rnp_tests.test_rnpcfg_get_expiration (93 ms)

https://github.com/rnpgp/rnp/pull/1870/checks?check_run_id=7299435924

antonsviridenko commented 1 year ago

Fixed in #2089