mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
fixed noise_state returns bytearray where we want bytes, add slow to pytest markers
This commit is contained in:
@ -72,7 +72,7 @@ class NoiseHandshakeReadWriter(BaseNoiseMsgReadWriter):
|
||||
return self.noise_state.write_message(data)
|
||||
|
||||
def decrypt(self, data: bytes) -> bytes:
|
||||
return self.noise_state.read_message(data)
|
||||
return bytes(self.noise_state.read_message(data))
|
||||
|
||||
|
||||
class NoiseTransportReadWriter(BaseNoiseMsgReadWriter):
|
||||
|
||||
@ -69,6 +69,10 @@ xfail_strict = true
|
||||
log_format = "%(levelname)8s %(asctime)s %(filename)20s %(message)s"
|
||||
log_date_format = "%m-%d %H:%M:%S"
|
||||
|
||||
markers = [
|
||||
"slow: mark test as slow",
|
||||
]
|
||||
|
||||
[tool.towncrier]
|
||||
# Read https://github.com/ethereum/py-libp2p/blob/main/newsfragments/README.md for instructions
|
||||
package = "libp2p"
|
||||
|
||||
Reference in New Issue
Block a user