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 2019/08/17 03:44:59 UTC

[kudu] branch master updated: Minor update to kudu-tool-test for macOS.

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


The following commit(s) were added to refs/heads/master by this push:
     new 8db3476  Minor update to kudu-tool-test for macOS.
8db3476 is described below

commit 8db3476444e6af608cca3cea3f75923b6e53d2dd
Author: hannahvnguyen <ha...@cloudera.com>
AuthorDate: Fri Aug 16 16:27:35 2019 -0700

    Minor update to kudu-tool-test for macOS.
    
    Test ClusterNameResolverFileCorrupt should fail with a
    slightly different error message when in macOS instead
    of Linux.
    
    Change-Id: I6ccf7103ae59fe93087be8654cd663a043d2be0e
    Reviewed-on: http://gerrit.cloudera.org:8080/14085
    Reviewed-by: Adar Dembo <ad...@cloudera.com>
    Reviewed-by: Alexey Serbin <as...@cloudera.com>
    Tested-by: Kudu Jenkins
---
 src/kudu/tools/kudu-tool-test.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/kudu/tools/kudu-tool-test.cc b/src/kudu/tools/kudu-tool-test.cc
index 2ab104e..13efcd0 100644
--- a/src/kudu/tools/kudu-tool-test.cc
+++ b/src/kudu/tools/kudu-tool-test.cc
@@ -4914,8 +4914,13 @@ TEST_F(ToolTest, ClusterNameResolverFileCorrupt) {
               Substitute(R"*(clusters_info:)*""\n"
                          R"*(  $0:)*""\n"
                          R"*(    master_addresses: bad,masters,addresses)*", kClusterName),
+#ifdef __APPLE__
+              Substitute("Network error: Could not connect to the cluster: unable to resolve "
+                         "address for bad: nodename nor servname provided, or not known")));
+#else
               Substitute("Network error: Could not connect to the cluster: unable to resolve "
                          "address for bad: Name or service not known")));
+#endif
 }
 
 TEST_F(ToolTest, ClusterNameResolverNormal) {