Send initialized notification from client instead of server (#85)
This commit is contained in:
parent
29aa74d137
commit
25dee3bb4c
1 changed files with 130 additions and 12 deletions
|
|
@ -41,17 +41,13 @@ struct ServerTests {
|
|||
// Wait for message processing and response
|
||||
try await Task.sleep(nanoseconds: 100_000_000) // 100ms
|
||||
|
||||
#expect(await transport.sentMessages.count == 2)
|
||||
#expect(await transport.sentMessages.count == 1)
|
||||
|
||||
let messages = await transport.sentMessages
|
||||
if let response = messages.first {
|
||||
#expect(response.contains("serverInfo"))
|
||||
}
|
||||
|
||||
if let noticiation = messages.last {
|
||||
#expect(noticiation.contains("initialized"))
|
||||
}
|
||||
|
||||
// Clean up
|
||||
await server.stop()
|
||||
await transport.disconnect()
|
||||
|
|
|
|||
Loading…
Reference in a new issue