Skip to content

Commit

Permalink
Update UT
Browse files Browse the repository at this point in the history
  • Loading branch information
zbud-msft committed Sep 30, 2024
1 parent 10cd850 commit bbf4481
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/events_common_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const char *test_cfg_data = "{\

TEST(events_common, get_config)
{
EXPECT_EQ(string("tcp://127.0.0.1:5570"), get_config(string(XSUB_END_KEY)));
EXPECT_EQ(string("tcp://127.0.0.1:5572"), get_config(string(REQ_REP_END_KEY)));
EXPECT_EQ(string("tcp://240.127.1.1:5570"), get_config(string(XSUB_END_KEY)));
EXPECT_EQ(string("tcp://240.127.1.1:5572"), get_config(string(REQ_REP_END_KEY)));
EXPECT_EQ(string("5"), get_config(string(STATS_UPD_SECS)));

ofstream tfile;
Expand All @@ -38,7 +38,7 @@ TEST(events_common, get_config)
EXPECT_EQ(100, get_config_data(CACHE_MAX_CNT, 100));

read_init_config(NULL);
EXPECT_EQ(string("tcp://127.0.0.1:5570"), get_config(string(XSUB_END_KEY)));
EXPECT_EQ(string("tcp://240.127.1.1:5570"), get_config(string(XSUB_END_KEY)));
}

void
Expand Down Expand Up @@ -73,7 +73,7 @@ TEST(events_common, send_recv)
}
#endif

char *path = "tcp://127.0.0.1:5570";
char *path = "tcp://240.127.1.1:5570";
void *zmq_ctx = zmq_ctx_new();
void *sock_p0 = zmq_socket (zmq_ctx, ZMQ_PAIR);
EXPECT_EQ(0, zmq_connect (sock_p0, path));
Expand Down Expand Up @@ -108,7 +108,7 @@ TEST(events_common, send_recv_control_character)
}
#endif

char *path = "tcp://127.0.0.1:5570";
char *path = "tcp://240.127.1.1:5570";
void *zmq_ctx = zmq_ctx_new();
void *sock_p0 = zmq_socket (zmq_ctx, ZMQ_PAIR);
EXPECT_EQ(0, zmq_connect (sock_p0, path));
Expand Down

0 comments on commit bbf4481

Please sign in to comment.