Skip to content

Commit

Permalink
Remove windows specific code from name resolver test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Dec 11, 2019
1 parent 38a36f7 commit 464c3f0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/src/unit/tests/test_name_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
#include "callback.hpp"
#include "name_resolver.hpp"

#ifdef WIN32
#include "winsock.h"
#endif

#define RESOLVE_TIMEOUT 2000

using namespace datastax;
Expand Down Expand Up @@ -58,13 +54,7 @@ TEST_F(NameResolverUnitTest, Simple) {
resolver->resolve(loop(), RESOLVE_TIMEOUT);
run_loop();
ASSERT_EQ(NameResolver::SUCCESS, status());
#ifdef WIN32
char win_hostname[64];
gethostname(win_hostname, 64);
EXPECT_EQ(String(win_hostname), hostname());
#else
EXPECT_EQ("cpp-driver.hostname.", hostname());
#endif
}

TEST_F(NameResolverUnitTest, Timeout) {
Expand Down

0 comments on commit 464c3f0

Please sign in to comment.