forked from osmocom/wireshark
test: Skip Follow HTTP2 test without Nghttp2
The expected test output is with the headers decompressed, which we can't do without Nghttp2. (It outputs the compressed headers if we don't have it, so we could test for that instead.) Fix #18707
This commit is contained in:
parent
2fcc819366
commit
74b1c07f91
|
@ -12,9 +12,13 @@ import fixtures
|
||||||
@fixtures.mark_usefixtures('test_env')
|
@fixtures.mark_usefixtures('test_env')
|
||||||
@fixtures.uses_fixtures
|
@fixtures.uses_fixtures
|
||||||
class case_follow_multistream(subprocesstest.SubprocessTestCase):
|
class case_follow_multistream(subprocesstest.SubprocessTestCase):
|
||||||
def test_follow_http2_multistream(self, cmd_tshark, capture_file):
|
def test_follow_http2_multistream(self, cmd_tshark, capture_file, features):
|
||||||
'''Checks whether Follow HTTP2 correctly handles multiple streams on the same packet.'''
|
'''Checks whether Follow HTTP2 correctly handles multiple streams on the same packet.'''
|
||||||
|
# If we don't have nghttp2, we output the compressed headers.
|
||||||
|
# We could test against the expected output in that case, but
|
||||||
|
# just skip for now.
|
||||||
|
if not features.have_nghttp2:
|
||||||
|
self.skipTest('Requires nghttp2.')
|
||||||
# Test 1:
|
# Test 1:
|
||||||
# 1. While following stream 25 we should ignore stream 21 at frame 65
|
# 1. While following stream 25 we should ignore stream 21 at frame 65
|
||||||
proc = self.assertRun((cmd_tshark,
|
proc = self.assertRun((cmd_tshark,
|
||||||
|
|
Loading…
Reference in New Issue