File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ static void test_processors()
489489 sampling_percentage = cfl_kvlist_fetch (sampling_settings -> data .as_kvlist ,
490490 "sampling_percentage" );
491491 TEST_CHECK (sampling_percentage != NULL );
492- TEST_CHECK (sampling_percentage -> type == CFL_VARIANT_INT );
492+ TEST_CHECK (sampling_percentage -> type == CFL_VARIANT_UINT );
493493 TEST_CHECK (sampling_percentage -> data .as_int64 == 25 );
494494 }
495495 }
@@ -892,8 +892,10 @@ static void test_metadata_section()
892892
893893 v = flb_cf_section_property_get (cf , s , "config_version" );
894894 TEST_CHECK (v != NULL );
895- TEST_CHECK (v -> type == CFL_VARIANT_STRING );
896- TEST_CHECK (strcmp (v -> data .as_string , "12345" ) == 0 );
895+ TEST_CHECK (v -> type == CFL_VARIANT_UINT );
896+ if (v != NULL && v -> type == CFL_VARIANT_UINT ) {
897+ TEST_CHECK (v -> data .as_uint64 == 12345 );
898+ }
897899
898900 v = flb_cf_section_property_get (cf , s , "annotations" );
899901 TEST_CHECK (v != NULL );
You can’t perform that action at this time.
0 commit comments