@@ -1,7 +0,0 @@ | |||
package Prog3.src.DiningPhilosophers; | |||
import static org.junit.jupiter.api.Assertions.*; | |||
class ForkTest { | |||
} |
@@ -40,10 +40,10 @@ public class SorterClient implements Runnable{ | |||
try (Socket socket = new Socket("localhost", 12345)) { | |||
sendLine(socket, line); | |||
receiveLine(socket); | |||
return receiveLine(socket); | |||
} catch (Exception e) { | |||
return "Error connecting to the server."; | |||
} | |||
return line; | |||
} | |||
} |