aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/uncrypt_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/uncrypt_test.cpp')
-rw-r--r--tests/unit/uncrypt_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/uncrypt_test.cpp b/tests/unit/uncrypt_test.cpp
index e97d589a..88fd16a2 100644
--- a/tests/unit/uncrypt_test.cpp
+++ b/tests/unit/uncrypt_test.cpp
@@ -96,7 +96,7 @@ class UncryptTest : public ::testing::Test {
// Connect to the uncrypt socket.
bool success = false;
for (int retry = 0; retry < SOCKET_CONNECTION_MAX_RETRY; retry++) {
- if (connect(sockfd, reinterpret_cast<sockaddr*>(&un), sizeof(sockaddr_un)) != 0) {
+ if (connect(sockfd, reinterpret_cast<sockaddr*>(&un), sizeof(sockaddr_un)) == 0) {
success = true;
break;
}