feat: Rename the disconnect method of each SHSEndpoint to close

The two verbs have the same meaning in this context, and this unifies the two interfaces, which helps type checking in
code using this library.
This commit is contained in:
2023-11-13 06:29:06 +01:00
parent 1ad7cb4e5e
commit 83add95c8a
2 changed files with 16 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ async def test_client(mocker: MockerFixture) -> None:
await client.open()
reader.append(b"TEST")
assert (await client.read()) == b"TEST"
client.disconnect()
client.close()
@pytest.mark.asyncio
@@ -155,7 +155,7 @@ async def test_server(mocker: MockerFixture) -> None:
resolve = Event()
async def _on_connect(_: Any) -> None:
server.disconnect()
server.close()
resolve.set()
_, _, _create_mock_server = _server_stream_mocker()