diff mbox series

[pynfs,2/3] nfs4.1: clean up the session and client created in Environment.finish()

Message ID 20190311154951.6144-3-smayhew@redhat.com (mailing list archive)
State New, archived
Headers show
Series a few fixes | expand

Commit Message

Scott Mayhew March 11, 2019, 3:49 p.m. UTC
Otherwise, they stick around on the server for a lease period.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
---
 nfs4.1/server41tests/environment.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/nfs4.1/server41tests/environment.py b/nfs4.1/server41tests/environment.py
index 1a898f8..0ce6943 100644
--- a/nfs4.1/server41tests/environment.py
+++ b/nfs4.1/server41tests/environment.py
@@ -208,6 +208,8 @@  class Environment(testmod.Environment):
         sess = self.c1.new_client_session("Environment.init_%i" % self.timestamp)
         clean_dir(sess, self.opts.home)
         sess.c.null()
+        self.clean_sessions()
+        self.clean_clients()
 
     def startUp(self):
         """Run before each test"""