Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 4256291

Browse files
committed
better test case
1 parent e2d2e63 commit 4256291

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_hyper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def test_closed_connections_are_reset(self):
278278
assert c.window_manager is not wm
279279
with c._conn as conn:
280280
assert conn.state_machine.state == ConnectionState.IDLE
281+
origin_h2_conn = conn
281282

282-
c = HTTP20Connection('www.google.com')
283283
c.close()
284284
assert c._sock is None
285285
assert not c.streams
@@ -288,6 +288,7 @@ def test_closed_connections_are_reset(self):
288288
assert c.window_manager is not wm
289289
with c._conn as conn:
290290
assert conn.state_machine.state == ConnectionState.IDLE
291+
assert conn != origin_h2_conn
291292

292293
def test_streams_removed_on_close(self):
293294
# Create content for read from socket

0 commit comments

Comments
 (0)