mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-28 08:51:11 +00:00
try increasing timeouts and decreasing test iterations to make test shorter
This commit is contained in:
parent
d52ec34a22
commit
24e79f66bc
@ -83,7 +83,7 @@ bool Listener::connect_to_target(int n_tries, const std::string& ip, int port) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (set_socket_timeout(listen_socket, 100000) < 0) {
|
||||
if (set_socket_timeout(listen_socket, 500000) < 0) {
|
||||
close_socket(listen_socket);
|
||||
listen_socket = -1;
|
||||
return false;
|
||||
|
@ -46,7 +46,7 @@ TEST(Listener, DeciCheckNoListener) {
|
||||
}
|
||||
|
||||
TEST(Listener, DeciThenListener) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Deci2Server s(always_false);
|
||||
EXPECT_TRUE(s.init());
|
||||
EXPECT_FALSE(s.check_for_listener());
|
||||
@ -66,7 +66,7 @@ TEST(Listener, DeciThenListener) {
|
||||
}
|
||||
|
||||
TEST(Listener, DeciThenListener2) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Deci2Server s(always_false);
|
||||
EXPECT_TRUE(s.init());
|
||||
EXPECT_FALSE(s.check_for_listener());
|
||||
@ -80,7 +80,7 @@ TEST(Listener, DeciThenListener2) {
|
||||
}
|
||||
|
||||
TEST(Listener, ListenerThenDeci) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Listener l;
|
||||
EXPECT_FALSE(l.connect_to_target());
|
||||
Deci2Server s(always_false);
|
||||
|
Loading…
Reference in New Issue
Block a user