Skip to content

Commit 464c3f0

Browse files
committed
Remove windows specific code from name resolver test
1 parent 38a36f7 commit 464c3f0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/src/unit/tests/test_name_resolver.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
#include "callback.hpp"
2020
#include "name_resolver.hpp"
2121

22-
#ifdef WIN32
23-
#include "winsock.h"
24-
#endif
25-
2622
#define RESOLVE_TIMEOUT 2000
2723

2824
using namespace datastax;
@@ -58,13 +54,7 @@ TEST_F(NameResolverUnitTest, Simple) {
5854
resolver->resolve(loop(), RESOLVE_TIMEOUT);
5955
run_loop();
6056
ASSERT_EQ(NameResolver::SUCCESS, status());
61-
#ifdef WIN32
62-
char win_hostname[64];
63-
gethostname(win_hostname, 64);
64-
EXPECT_EQ(String(win_hostname), hostname());
65-
#else
6657
EXPECT_EQ("cpp-driver.hostname.", hostname());
67-
#endif
6858
}
6959

7060
TEST_F(NameResolverUnitTest, Timeout) {

0 commit comments

Comments
 (0)