Skip to content

Commit

Permalink
test/tshark: fix multiple -O completion with no http2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 25, 2020
1 parent 2ad91ec commit 53f624f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/t/test_tshark.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ def test_2(self, completion):

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

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

0 comments on commit 53f624f

Please sign in to comment.