make tests green again
This commit is contained in:
parent
3f6168b337
commit
6279b0587a
6 changed files with 16 additions and 16 deletions
|
|
@ -5,8 +5,8 @@ import os
|
|||
|
||||
type
|
||||
Window = object
|
||||
oneInstSock*: PAsyncSocket
|
||||
IODispatcher*: PDispatcher
|
||||
oneInstSock*: AsyncSocket
|
||||
IODispatcher*: Dispatcher
|
||||
|
||||
var
|
||||
win: Window
|
||||
|
|
@ -14,9 +14,9 @@ var
|
|||
proc initSocket() =
|
||||
win.oneInstSock = asyncSocket()
|
||||
#win.oneInstSock.handleAccept =
|
||||
proc test(s: PAsyncSocket) =
|
||||
var client: PAsyncSocket
|
||||
proc dummy(c: PAsyncSocket) {.closure.} =
|
||||
proc test(s: AsyncSocket) =
|
||||
var client: AsyncSocket
|
||||
proc dummy(c: AsyncSocket) {.closure.} =
|
||||
discard
|
||||
client.handleRead = dummy
|
||||
test(win.oneInstSock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue