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 4781691 commit 85452e9
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 @@ -282,6 +282,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 85452e9

Please sign in to comment.