From: Dai Ngo <dai.ngo@oracle.com>
To: bfields@fieldses.org
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 1/2] st_courtesy.py: Fix problem of missing RECLAIM_COMPLETE in COUR2
Date: Tue, 5 Oct 2021 19:41:22 -0400 [thread overview]
Message-ID: <20211005234123.41053-2-dai.ngo@oracle.com> (raw)
In-Reply-To: <20211005234123.41053-1-dai.ngo@oracle.com>
Replace new_client and create_session with new_client_session.
Fixes: 18553b92ba8d0 ("pynfs: courtesy: add a test to ensure server releases state appropriately")
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
---
nfs4.1/server41tests/st_courtesy.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/nfs4.1/server41tests/st_courtesy.py b/nfs4.1/server41tests/st_courtesy.py
index dd911a37772d..a38ba30b6133 100644
--- a/nfs4.1/server41tests/st_courtesy.py
+++ b/nfs4.1/server41tests/st_courtesy.py
@@ -69,10 +69,9 @@ def testLockSleepLock(t, env):
check(res, NFS4_OK)
lease_time = _getleasetime(sess1)
- env.sleep(lease_time * 2, "twice the lease period")
+ env.sleep(lease_time + 10, "the lease period + 10 secs")
- c2 = env.c1.new_client(b"%s_2" % env.testname(t))
- sess2 = c2.create_session()
+ sess2 = env.c1.new_client_session(b"%s_2" % env.testname(t))
res = open_file(sess2, env.testname(t), access=OPEN4_SHARE_ACCESS_WRITE)
check(res)
--
2.9.5
next prev parent reply other threads:[~2021-10-05 23:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 23:41 [PATCH 0/2] st_courtesy.py: fix bug in COUR2 and add more tests for Courteous Server Dai Ngo
2021-10-05 23:41 ` Dai Ngo [this message]
2021-10-05 23:41 ` [PATCH 2/2] st_courtesy.py: " Dai Ngo
2021-10-06 15:05 ` [PATCH 0/2] st_courtesy.py: fix bug in COUR2 and " J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211005234123.41053-2-dai.ngo@oracle.com \
--to=dai.ngo@oracle.com \
--cc=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).