count bytes missing

This commit is contained in:
meejah 2021-02-12 01:09:39 -07:00
parent 4669619f7e
commit 40919b51be
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ class TransitServerState(object):
relaying.upon(
got_bytes,
enter=relaying,
outputs=[_send_to_partner],
outputs=[_count_bytes, _send_to_partner],
)
relaying.upon(
connection_lost,

View File

@ -415,7 +415,7 @@ class Usage(ServerBase, unittest.TestCase):
self.assertEqual(len(self._usage), 1, self._usage)
self.assertEqual(self._usage[0]["mood"], "happy", self._usage)
self.assertEqual(self._usage[0]["total_bytes"], 20)
self.assertNotIdentical(waiting_time, None)
self.assertNotIdentical(self._usage[0]["waiting_time"], None)
def test_redundant(self):
p1a = self.new_protocol()