try increasing timeouts and decreasing test iterations to make test shorter

This commit is contained in:
water 2020-09-08 21:26:09 -04:00
parent d52ec34a22
commit 24e79f66bc
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);