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

Commit 0fa1d68

Browse files
committed
Fixed test ping functions related to _data_cb typo
1 parent 42556df commit 0fa1d68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_hyper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def test_ping_with_ack_ignored(self):
12731273

12741274
def data_cb(frame, tolerate_peer_gone=False):
12751275
assert False, 'should not be called'
1276-
c._data_cb = data_cb
1276+
c._send_cb = data_cb
12771277
c.receive_frame(f)
12781278

12791279
def test_ping_without_ack_gets_reply(self):
@@ -1285,7 +1285,7 @@ def test_ping_without_ack_gets_reply(self):
12851285

12861286
def data_cb(frame, tolerate_peer_gone=False):
12871287
frames.append(frame)
1288-
c._data_cb = data_cb
1288+
c._send_cb = data_cb
12891289
c.receive_frame(f)
12901290

12911291
assert len(frames) == 1

0 commit comments

Comments
 (0)