diff --git a/trezor_agent/gpg/tests/test_keyring.py b/trezor_agent/gpg/tests/test_keyring.py index 034d174..6f86de2 100644 --- a/trezor_agent/gpg/tests/test_keyring.py +++ b/trezor_agent/gpg/tests/test_keyring.py @@ -80,4 +80,5 @@ PKSIGN def test_iterlines(): sock = FakeSocket() sock.rx.write(b'foo\nbar\nxyz') - assert list(keyring.iterlines(sock)) == [] + sock.rx.seek(0) + assert list(keyring.iterlines(sock)) == [b'foo', b'bar']