]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/libcephfs: update delegation test assertions 52569/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 21 Jul 2023 07:42:47 +0000 (07:42 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 21 Jul 2023 07:48:22 +0000 (07:48 +0000)
commit7488deef32222e7cf1ce83401d6e65c492200823
tree218dfe4a675a27b86ae7f1bfa5d9baa5d9d70451
parent104bec4041f0e45ec698e6d06149b95682f4cd1f
test/libcephfs: update delegation test assertions

Some of the libcephfs tests ensure that the delegations are recalled
as a result of certain open requests.

The issue is that we're expecting the "opened" flag to be false
after the delegation gets recalled, which is racy.

  /home/ubuntu/ceph/src/test/libcephfs/deleg.cc:392: Failure
  Expected equality of these values:
    opened.load()
      Which is: true
    false

We'll update those checks, asserting that "opened" is true after
the delegation breaker thread returns.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/test/libcephfs/deleg.cc