Skip to content

Commit

Permalink
define test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Feb 6, 2025
1 parent 272f190 commit e4d808f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lstransports.nim
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ proc startSocketServer*(ls: LanguageServer, port: Port) =
ls.srv.addStreamServer("localhost", port)
ls.srv.start
proc waitUntilSocketTransportIsReady(ls: LanguageServer) {.async.} =
when defined(test):
return
while ls.socketTransport.isNil:
await sleepAsync(100)

Expand Down
1 change: 1 addition & 0 deletions tests/config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
--define:"async_backend=asyncdispatch"
--define:"chronicles_timestamps=None"
--define:"debugLogging"
--define:"test"

0 comments on commit e4d808f

Please sign in to comment.