Skip to content

Commit 579b5f9

Browse files
committed
Update ALS after changes in Spawn.
1 parent a399ee3 commit 579b5f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/client/lsp-raw_clients.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ package body LSP.Raw_Clients is
7171

7272
function Is_Server_Running (Self : Raw_Client'Class) return Boolean is
7373
begin
74-
return Self.Server.Status in Spawn.Processes.Running;
74+
return Self.Server.Status in Spawn.Running;
7575
end Is_Server_Running;
7676

7777
-------------------------------

source/tester/tester-tests.adb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ package body Tester.Tests is
204204
Self.Send_Message (Text);
205205

206206
loop
207-
Spawn.Processes.Monitor_Loop (Timeout => 100);
207+
Spawn.Processes.Monitor_Loop (Timeout => 0.1);
208208
exit when GNATCOLL.JSON.Length (Self.Waits) = 0;
209209

210210
if Ada.Calendar.Clock - Self.Started > Timeout
@@ -408,7 +408,7 @@ package body Tester.Tests is
408408
Listener.Process.Close_Standard_Error;
409409

410410
loop
411-
Spawn.Processes.Monitor_Loop (Timeout => 10);
411+
Spawn.Processes.Monitor_Loop (Timeout => 0.01);
412412
exit when Listener.Done;
413413
end loop;
414414

@@ -469,7 +469,7 @@ package body Tester.Tests is
469469
Self.Start;
470470

471471
loop
472-
Spawn.Processes.Monitor_Loop (Timeout => 1);
472+
Spawn.Processes.Monitor_Loop (Timeout => 0.001);
473473
exit when Self.Is_Server_Running;
474474
end loop;
475475

@@ -511,7 +511,7 @@ package body Tester.Tests is
511511
end if;
512512

513513
loop
514-
Spawn.Processes.Monitor_Loop (Timeout => 1);
514+
Spawn.Processes.Monitor_Loop (Timeout => 0.001);
515515
exit when not Self.Is_Server_Running;
516516
end loop;
517517

0 commit comments

Comments
 (0)