Skip to content

Commit 6bffdad

Browse files
committed
Rename an attribute for clarity (already renamed in Simulation class).
1 parent 6e9b1da commit 6bffdad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_canlink.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ def __init__(self):
2222
# onFrameSent will not work until this instance is passed to the
2323
# LinkLayer subclass' constructor (See onFrameSent
2424
# docstring in PhysicalLayer)
25-
self.receivedFrames = []
25+
self.sentFrames = []
2626
CanPhysicalLayer.__init__(self)
2727

2828
def sendDataAfter(self, data):
2929
assert isinstance(data, (bytes, bytearray))
30-
self.receivedFrames.append(data)
31-
30+
self.sentFrames.append(data)
3231

3332
def sendAll(self, _, mode="binary", verbose=True) -> int:
3433
"""Simulated sendAll

0 commit comments

Comments
 (0)