]> 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>
Thu, 20 Jun 2024 10:52:39 +0000 (12:52 +0200)
commit3bac86908cd220720719ba09ceef79d0f2399af2
treea31ab4344611080e6bac0091afba0f6a01e90fe9
parentc9a6ea1a9b2813c8850ecfd944177df90a137c65
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>
(cherry picked from commit a1b6ca863a384fe32e750b9ee8f10688f88dd1e3)
src/test/pybind/test_rbd.py