I think here one of sleeps was very inconviently choosen (12000 ms), if ship managed to get to the port before, it returned failure, and if after, it reported success. But Im not 100% sure of this.
Generally, the problem are hardcoded times (sleeps) - sometimes, usually time of sailing is constant but times inbetween can vary a bit...
I think here one of sleeps was very inconviently choosen (12000 ms), if ship managed to get to the port before, it returned failure, and if after, it reported success. But Im not 100% sure of this.
Generally, the problem are hardcoded times (sleeps) - sometimes, usually time of sailing is constant but times inbetween can vary a bit...