Skip to content

Commit 8a3f2c7

Browse files
committed
more waiting time in serverbase test
1 parent 16d4343 commit 8a3f2c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

serverbase/source/served/serverbase.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,11 @@ unittest
608608
Thread.sleep(10.msecs);
609609
} while (!started);
610610
// give it a little more time
611-
Thread.sleep(50.msecs);
611+
Thread.sleep(200.msecs);
612612

613613
trace("Started mock RPC");
614614
mockRPC.writePacket(`{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"processId":null,"rootUri":"file:///","capabilities":{}}}`);
615-
Thread.sleep(50.msecs);
615+
Thread.sleep(200.msecs);
616616
assert(server.serverInitializeCalled);
617617
trace("Initialized");
618618

@@ -633,7 +633,7 @@ unittest
633633

634634
assert(!calledCustomNotify);
635635
mockRPC.writePacket(`{"jsonrpc":"2.0","method":"custom/notify","params":{"i":4}}`);
636-
Thread.sleep(50.msecs);
636+
Thread.sleep(200.msecs);
637637
assert(calledCustomNotify == 8,
638638
text("calledCustomNotify = ", calledCustomNotify, " - ptr: ", &calledCustomNotify));
639639

0 commit comments

Comments
 (0)