]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fixed utils_format_graphite_test
authorMarat Salimzianov <marat.salimzianov@tomtom.com>
Thu, 7 Feb 2019 12:52:10 +0000 (13:52 +0100)
committerMarat Salimzianov <marat.salimzianov@tomtom.com>
Thu, 7 Feb 2019 12:52:10 +0000 (13:52 +0100)
src/utils_format_graphite_test.c

index 2dff0c53077242443789ff6e44b2b91768ed4363..10c37cd3e03b3069b81172ffff7704c5e28582c7 100644 (file)
@@ -81,10 +81,11 @@ DEF_TEST(metric_name) {
           .type_instance = "test: \"hello\"",
           .want_name = "example@com.test-foo@@test@.single-test@@@hello@",
       },
+      /* test escaping comma */
       {
           .plugin_instance = "foo (test)",
-          .type_instance = "test: \"hello\"",
-          .want_name = "example,com.test-foo,,test,.single-test,,,hello,",
+          .type_instance = "test,123,",
+          .want_name = "example@com.test-foo@@test@.single-test@123@",
       },
       /* flag GRAPHITE_SEPARATE_INSTANCES */
       {