You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2024/04/02 23:39:04 UTC

(kudu) 01/02: [tests] fix a misprint

This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit ab368443d276006e93370a5b6bd5862eea2475fe
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Mon Apr 1 19:40:38 2024 -0700

    [tests] fix a misprint
    
    Tests should use ASSERT_NE(), not DCHECK_NE().
    
    This is a follow-up to e54c80cf9ba129b943eed6af3266899753b1b4ac.
    
    Change-Id: I78428cf60449820508f995c4a7c2a84582ce32c1
    Reviewed-on: http://gerrit.cloudera.org:8080/21229
    Tested-by: Alexey Serbin <al...@apache.org>
    Reviewed-by: Mahesh Reddy <mr...@cloudera.com>
    Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
---
 src/kudu/integration-tests/disk_reservation-itest.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kudu/integration-tests/disk_reservation-itest.cc b/src/kudu/integration-tests/disk_reservation-itest.cc
index 519a2dfa7..d7e8dad01 100644
--- a/src/kudu/integration-tests/disk_reservation-itest.cc
+++ b/src/kudu/integration-tests/disk_reservation-itest.cc
@@ -177,7 +177,7 @@ TEST_F(DiskReservationITest, AvailableSpaceMetrics) {
   NO_FATALS(StartCluster(ts_flags, {}, 1));
 
   auto* ts = cluster_->tablet_server(0);
-  DCHECK_NE(nullptr, ts);
+  ASSERT_NE(nullptr, ts);
   const auto& addr = ts->bound_http_hostport();
 
   auto space_getter_data_dirs = [&](int64_t* available_bytes) {