@@ -163,7 +163,7 @@ TEST_P(TcpProxyOdcdsIntegrationTest, SingleTcpClient) {
163
163
ASSERT_TRUE (fake_upstream_connection->waitForDisconnect ());
164
164
tcp_client->waitForHalfClose ();
165
165
tcp_client->close ();
166
- assertOnDemandCounters (1 , 0 , 0 );
166
+ EXPECT_TRUE ( assertOnDemandCounters (1 , 0 , 0 ) );
167
167
}
168
168
169
169
// Verify only one delta xds response is needed for multiple tcp_proxy requests.
@@ -249,7 +249,7 @@ TEST_P(TcpProxyOdcdsIntegrationTest, ShutdownConnectionOnTimeout) {
249
249
250
250
tcp_client->waitForHalfClose ();
251
251
tcp_client->close ();
252
- assertOnDemandCounters (0 , 0 , 1 );
252
+ EXPECT_TRUE ( assertOnDemandCounters (0 , 0 , 1 ) );
253
253
}
254
254
255
255
TEST_P (TcpProxyOdcdsIntegrationTest, ShutdownConnectionOnClusterMissing) {
@@ -277,7 +277,7 @@ TEST_P(TcpProxyOdcdsIntegrationTest, ShutdownConnectionOnClusterMissing) {
277
277
278
278
tcp_client->waitForHalfClose ();
279
279
tcp_client->close ();
280
- assertOnDemandCounters (0 , 1 , 0 );
280
+ EXPECT_TRUE ( assertOnDemandCounters (0 , 1 , 0 ) );
281
281
}
282
282
283
283
TEST_P (TcpProxyOdcdsIntegrationTest, ShutdownAllConnectionsOnClusterLookupTimeout) {
@@ -306,7 +306,7 @@ TEST_P(TcpProxyOdcdsIntegrationTest, ShutdownAllConnectionsOnClusterLookupTimeou
306
306
307
307
tcp_client_1->waitForHalfClose (true );
308
308
tcp_client_2->waitForHalfClose (true );
309
- assertOnDemandCounters (0 , 0 , 2 );
309
+ EXPECT_TRUE ( assertOnDemandCounters (0 , 0 , 2 ) );
310
310
tcp_client_1->close ();
311
311
tcp_client_2->close ();
312
312
}
@@ -331,7 +331,7 @@ TEST_P(TcpProxyOdcdsIntegrationTest, ShutdownTcpClientBeforeOdcdsResponse) {
331
331
EXPECT_EQ (1 , test_server_->counter (" tcp.tcpproxy_stats.on_demand_cluster_attempt" )->value ());
332
332
// Client disconnect when the tcp proxy is waiting for the on demand response.
333
333
tcp_client->close ();
334
- assertOnDemandCounters (0 , 0 , 0 );
334
+ EXPECT_TRUE ( assertOnDemandCounters (0 , 0 , 0 ) );
335
335
}
336
336
337
337
} // namespace
0 commit comments