diff --git a/src/c++/tests/client_timeout_test.cc b/src/c++/tests/client_timeout_test.cc index 91a8e2796..13e6ab5ec 100644 --- a/src/c++/tests/client_timeout_test.cc +++ b/src/c++/tests/client_timeout_test.cc @@ -144,7 +144,7 @@ TestTimeoutAPIs( COUNT_ERROR_MSGS( grpc_client->UnregisterCudaSharedMemory(memory_name, headers, timeout_ms), "Failed on UnregisterSystemSharedMemory", count); - if (count > 0 && count == 18) { + if (count > 0 && count != 18) { std::cerr << "error count: " << count << " which is not 0 nor expected number of APIs that are " "expected to fail (18)"