Why do my Java server tests pass when I add a System.out.println(in.readLine()) statement before the tests, but fail without that statement?
I’m working on implementing a server in Java to handle a multiplayer Minesweeper game. In trying to test my server to ensure that it responds correctly to legal client requests, I am finding that the tests only pass if I add a System.out.println(in.readLine()) statement after printing a particular client request to the output stream but… Read More Why do my Java server tests pass when I add a System.out.println(in.readLine()) statement before the tests, but fail without that statement?