Skip to content

Commit 134de74

Browse files
committed
Fix Solaris UT
1 parent 3e59d41 commit 134de74

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

devapi/tests/session-t.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ TEST_F(Sess, failover)
991991
std::stringstream uri;
992992

993993
uri << "[(address=localhost:" << get_port() <<",priority=0)";
994-
uri << ",127.0.0.1:65535" << get_port();
994+
uri << ",not_good:65535" << get_port();
995995
uri << "]";
996996
EXPECT_THROW(
997997
mysqlx::Session s(uri.str())
@@ -1010,7 +1010,7 @@ TEST_F(Sess, failover)
10101010

10111011
uri << "@["
10121012
"localhost6,"
1013-
"127.0.1.250:65535,"
1013+
"wont_work:65535,"
10141014
"[::1]:65535,";
10151015
uri << "127.0.0.1";
10161016
if (get_port() != 0)
@@ -1056,7 +1056,7 @@ TEST_F(Sess, failover)
10561056
SessionOption::PWD, get_password() ? get_password() : nullptr,
10571057
SessionOption::HOST, "server.example.com",
10581058
SessionOption::PRIORITY, 1,
1059-
SessionOption::HOST, "192.0.2.11",
1059+
SessionOption::HOST, "rubish",
10601060
SessionOption::PORT, 65535,
10611061
SessionOption::PRIORITY, 99,
10621062
SessionOption::HOST, "[::1]",
@@ -1098,10 +1098,10 @@ TEST_F(Sess, failover)
10981098

10991099
settings.set(SessionOption::HOST, "server.example.com",
11001100
SessionOption::PRIORITY, 1,
1101-
SessionOption::HOST, "192.0.2.11",
1101+
SessionOption::HOST, "away",
11021102
SessionOption::PORT, 65535,
11031103
SessionOption::PRIORITY, 98,
1104-
SessionOption::HOST, "[2001:db8:85a3:8d3:1319:8a2e:370:7348]",
1104+
SessionOption::HOST, "to_far_away",
11051105
SessionOption::PRIORITY, 2,
11061106
SessionOption::HOST, "::1",
11071107
SessionOption::PORT, get_port(),
@@ -1135,7 +1135,7 @@ TEST_F(Sess, failover)
11351135
get_password() :
11361136
nullptr);
11371137

1138-
settings.set(SessionOption::HOST, "192.168.1.254",
1138+
settings.set(SessionOption::HOST, "looking_for_it",
11391139
SessionOption::DB, "test"
11401140
);
11411141

@@ -1155,7 +1155,7 @@ TEST_F(Sess, failover)
11551155
// Error because first host was not explicit.
11561156

11571157
EXPECT_THROW(
1158-
settings.set(SessionOption::HOST, "192.0.2.11",
1158+
settings.set(SessionOption::HOST, "not_found",
11591159
SessionOption::PORT, 33060),
11601160
Error);
11611161
}

0 commit comments

Comments
 (0)