Skip to content

Commit 095a27e

Browse files
committed
Validate test starting conditions.
(cherry picked from commit 0b13b0d)
1 parent 4f13272 commit 095a27e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_h2_upgrade.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ def test_client_settings_are_applied(self, frame_factory):
272272
server = h2.connection.H2Connection(client_side=False)
273273
client = h2.connection.H2Connection(client_side=True)
274274

275+
# As a precaution, let's confirm that the server and client, at the
276+
# start of the connection, do not agree on their initial settings
277+
# state.
278+
assert (
279+
client.local_settings._settings != server.remote_settings._settings
280+
)
281+
275282
# Get the client header data and pass it to the server.
276283
header_data = client.initiate_upgrade_connection()
277284
server.initiate_upgrade_connection(header_data)

0 commit comments

Comments
 (0)