Add unit test for opening/closing RemoteSyslogChannel

This commit is contained in:
Mike Naquin
2013-06-18 08:35:52 -05:00
parent a9284393b0
commit 7f17255ed8
3 changed files with 45 additions and 4 deletions

View File

@@ -89,8 +89,8 @@ void RemoteSyslogChannel::open()
{
if (_open) return;
// reset socket for the case that it has been previously closed
_socket = DatagramSocket();
// reset socket for the case that it has been previously closed
_socket = DatagramSocket();
if (_logHost.find(':') != std::string::npos)
_socketAddress = SocketAddress(_logHost);
@@ -108,8 +108,8 @@ void RemoteSyslogChannel::open()
_host = _socket.address().host().toString();
}
}
_open = true;
_open = true;
}