Index: test/cctest/test-sockets.cc |
diff --git a/test/cctest/test-sockets.cc b/test/cctest/test-sockets.cc |
index a4b2285e88139820d3f92cf1fedb2c606f41641e..822a23fa95ff439b0c58c02f59ab5c33626a73aa 100644 |
--- a/test/cctest/test-sockets.cc |
+++ b/test/cctest/test-sockets.cc |
@@ -42,6 +42,7 @@ void SocketListenerThread::Run() { |
// Create the server socket and bind it to the requested port. |
server_ = OS::CreateSocket(); |
+ server_->SetReuseAddress(true); |
CHECK(server_ != NULL); |
ok = server_->Bind(port_); |
CHECK(ok); |