Skip to content

Commit

Permalink
fix core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Jun 25, 2021
1 parent 30f5e07 commit 9651f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-tests/src/network/dns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ TEST(dns, cancel) {
System::sleep(0.002);
co->cancel();
});
auto list1 = swoole::coroutine::dns_lookup("www.baidu.com", AF_INET, 2);
auto list1 = swoole::coroutine::dns_lookup("www.baidu-not-found-for-cancel.com", AF_INET, 2);
ASSERT_EQ(list1.size(), 0);
ASSERT_EQ(swoole_get_last_error(), SW_ERROR_CO_CANCELED);
});
Expand Down

0 comments on commit 9651f64

Please sign in to comment.