@@ -152,14 +152,14 @@ def test_histogram_exemplars(self):
152152# HELP a help 
153153a_bucket{le="1.0"} 0 # {a="b"} 0.5 
154154a_bucket{le="2.0"} 2 # {a="c"} 0.5 
155- a_bucket{le="+Inf"} 3 # {a="1234567890123456789012345678901234567890123456789012345678 "} 4 123 
155+ a_bucket{le="+Inf"} 3 # {a="2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 "} 4 123 
156156# EOF 
157157""" )
158158        hfm  =  HistogramMetricFamily ("a" , "help" )
159159        hfm .add_sample ("a_bucket" , {"le" : "1.0" }, 0.0 , None , Exemplar ({"a" : "b" }, 0.5 ))
160160        hfm .add_sample ("a_bucket" , {"le" : "2.0" }, 2.0 , None , Exemplar ({"a" : "c" }, 0.5 )),
161161        hfm .add_sample ("a_bucket" , {"le" : "+Inf" }, 3.0 , None ,
162-                        Exemplar ({"a" : "1234567890123456789012345678901234567890123456789012345678 " }, 4 ,
162+                        Exemplar ({"a" : "2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 " }, 4 ,
163163                                Timestamp (123 , 0 )))
164164        self .assertEqual ([hfm ], list (families ))
165165
@@ -694,7 +694,7 @@ def test_invalid_input(self):
694694            ('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 \n # EOF\n ' ),
695695            ('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 1 \n # EOF\n ' ),
696696            ('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # ' 
697-              '{a="2345678901234567890123456789012345678901234567890123456789012345 "} 1 1\n # EOF\n ' ),
697+              '{a="23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 "} 1 1\n # EOF\n ' ),
698698            ('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 0x1p-3\n # EOF\n ' ),
699699            ('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 0x1p-3\n # EOF\n ' ),
700700            # Exemplars on unallowed samples. 
0 commit comments