Join next without leave to impress tibit/onos/voltha
Change-Id: Ifc5e1851151873f483bedbdfb5b49f46077b4f38
diff --git a/src/test/utils/Channels.py b/src/test/utils/Channels.py
index b44d6df..6119e8a 100644
--- a/src/test/utils/Channels.py
+++ b/src/test/utils/Channels.py
@@ -191,7 +191,7 @@
self.last_chan = None
return True
- def join_next(self, chan = None):
+ def join_next(self, chan = None, leave_flag = True):
if chan is None:
chan = self.last_chan
if chan is None:
@@ -206,7 +206,8 @@
join = 0
if leave >= 0 and leave != join:
- self.leave(leave)
+ if leave_flag is True:
+ self.leave(leave)
return self.join(join)