Skip to content

Commit 53f624f

Browse files
committed
test/tshark: fix multiple -O completion with no http2 support
1 parent 2ad91ec commit 53f624f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/t/test_tshark.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ def test_2(self, completion):
1313

1414
@pytest.mark.complete("tshark -O foo,htt", require_cmd=True)
1515
def test_3(self, completion):
16-
# When there's only one completion, it's be the one with "foo," prefix;
17-
# when multiple (e.g. http and http2), it's the completion alone.
18-
assert completion == "foo,http" or "http" in completion
16+
# p: one completion only; http: e.g. http and http2
17+
assert completion == "p" or "http" in completion
1918

2019
@pytest.mark.complete("tshark -o tcp", require_cmd=True)
2120
def test_4(self, completion):

0 commit comments

Comments
 (0)