]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/pybind/rbd: make timestamp tests meaningful
authorIlya Dryomov <idryomov@gmail.com>
Tue, 4 Jun 2024 19:37:49 +0000 (21:37 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 5 Jun 2024 06:42:14 +0000 (08:42 +0200)
commita1b6ca863a384fe32e750b9ee8f10688f88dd1e3
tree467f68dbf6871f765c0053712f03093244d5f839
parent05f7e4f2025c435dca8ae0b34f65425afbc212b5
test/pybind/rbd: make timestamp tests meaningful

The existing asserts don't really test anything, with some of them
being for inequality against a literal of a mismatching type.  As
a result, a bug in access_timestamp() and modify_timestamp() went
unnoticed for years.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/pybind/test_rbd.py