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

Commit

Permalink
Fixed test ping functions related to _data_cb typo
Browse files Browse the repository at this point in the history
  • Loading branch information
t2y committed Jan 24, 2015
1 parent 42556df commit 0fa1d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ def test_ping_with_ack_ignored(self):

def data_cb(frame, tolerate_peer_gone=False):
assert False, 'should not be called'
c._data_cb = data_cb
c._send_cb = data_cb
c.receive_frame(f)

def test_ping_without_ack_gets_reply(self):
Expand All @@ -1285,7 +1285,7 @@ def test_ping_without_ack_gets_reply(self):

def data_cb(frame, tolerate_peer_gone=False):
frames.append(frame)
c._data_cb = data_cb
c._send_cb = data_cb
c.receive_frame(f)

assert len(frames) == 1
Expand Down

0 comments on commit 0fa1d68

Please sign in to comment.