]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
format_json: Fix unit test.
authorFlorian Forster <octo@collectd.org>
Sat, 16 Dec 2023 18:09:47 +0000 (19:09 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 3 Jan 2024 15:39:36 +0000 (16:39 +0100)
src/utils/format_json/format_json_test.c

index cde4edd4ff03951b208e40ccd1aa1c66f46d40ac..5479bdb9a0dcec03ae177ca587820bf045bb8c7a 100644 (file)
@@ -321,7 +321,7 @@ DEF_TEST(open_telemetry) {
       "{\"resourceMetrics\":[{\"resource\":{\"attributes\":[{\"key\":\"service."
       "name\",\"value\":{\"stringValue\":\"unit "
       "test\"}}]},\"scopeMetrics\":[{\"scope\":{\"name\":\"collectd\","
-      "\"version\":\"5.12.0.383.ge714589+\"},\"metrics\":[{\"name\":\"unit."
+      "\"version\":\"" PACKAGE_VERSION "\"},\"metrics\":[{\"name\":\"unit."
       "test.count\",\"description\":\"Example counter "
       "metric\",\"sum\":{\"dataPoints\":[{\"attributes\":[{\"key\":\"metric."
       "label\",\"value\":{\"stringValue\":\"bar\"}}],\"timeUnixNano\":0,"