Skip to content

Commit

Permalink
improve unit test. adding extra timeout. (FixUdp.SendAndReceive)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o authored Dec 30, 2024
1 parent 1b5e4ac commit d49a944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/udp/FixUdp.SendAndReceive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void Server()

server.To.Open(host).Wait();

Thread.Sleep(millisecondsTimeout: 100);
Thread.Sleep(millisecondsTimeout: 2000);
{
Assert.True(server.IsOpened);
Assert.True(isModify);
Expand All @@ -76,7 +76,7 @@ void Server()
actions.Add(action);
}

Thread.Sleep(1000);
Thread.Sleep(2000);

Assert.Equal(maxConnection, server.Clients.Length);
Assert.Equal(maxConnection, allDataReceived);
Expand Down Expand Up @@ -142,4 +142,4 @@ void Client(Host host, out Action action)
};
}
}
}
}

0 comments on commit d49a944

Please sign in to comment.