summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs.py')
-rw-r--r--test/fs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fs.py b/test/fs.py
index bd5ab501..5690cedc 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -267,8 +267,8 @@ def discovery(binary, embedded=False):
# wctl `current` does; a pane's ctl line ends saying which it is.
client.write('/focus', f'{first}\n'.encode())
assert client.read('/focus') == f'{first}\n'.encode()
- assert client.read(f'/pane/{first}/ctl').endswith(b' current ')
- assert client.read(f'/pane/{second}/ctl').endswith(b' notcurrent ')
+ assert b' current ' in client.read(f'/pane/{first}/ctl')
+ assert b' notcurrent ' in client.read(f'/pane/{second}/ctl')
try:
client.write('/focus', b'99999\n')
raise AssertionError('focus took a serial no pane has')