@@ -175,33 +175,33 @@ void configureWhenAllHistogramTrueSetPercentilesHistogramToTrue() {
175
175
@ Test
176
176
void configureWhenHasPercentilesShouldSetPercentilesToValue () {
177
177
PropertiesMeterFilter filter = new PropertiesMeterFilter (
178
- createProperties ("distribution.percentiles.spring.boot=1,1.5,2 " ));
178
+ createProperties ("distribution.percentiles.spring.boot=0.2,0.4,0.8 " ));
179
179
assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT ).getPercentiles ())
180
- .containsExactly (1 , 1.5 , 2 );
180
+ .containsExactly (0.2 , 0.4 , 0.8 );
181
181
}
182
182
183
183
@ Test
184
184
void configureWhenHasHigherPercentilesShouldSetPercentilesToValue () {
185
185
PropertiesMeterFilter filter = new PropertiesMeterFilter (
186
- createProperties ("distribution.percentiles.spring=1,1.5,2 " ));
186
+ createProperties ("distribution.percentiles.spring=0.2,0.4,0.8 " ));
187
187
assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT ).getPercentiles ())
188
- .containsExactly (1 , 1.5 , 2 );
188
+ .containsExactly (0.2 , 0.4 , 0.8 );
189
189
}
190
190
191
191
@ Test
192
192
void configureWhenHasHigherPercentilesAndLowerShouldSetPercentilesToLower () {
193
193
PropertiesMeterFilter filter = new PropertiesMeterFilter (createProperties (
194
- "distribution.percentiles.spring=1,1.5,2 " , "distribution.percentiles.spring.boot=3,3.5,4 " ));
194
+ "distribution.percentiles.spring=0.2,0.4,0.8 " , "distribution.percentiles.spring.boot=0.85,0.9,0.95 " ));
195
195
assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT ).getPercentiles ())
196
- .containsExactly (3 , 3.5 , 4 );
196
+ .containsExactly (0.85 , 0.9 , 0.95 );
197
197
}
198
198
199
199
@ Test
200
200
void configureWhenAllPercentilesSetShouldSetPercentilesToValue () {
201
201
PropertiesMeterFilter filter = new PropertiesMeterFilter (
202
- createProperties ("distribution.percentiles.all=1,1.5,2 " ));
202
+ createProperties ("distribution.percentiles.all=0.2,0.4,0.8 " ));
203
203
assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT ).getPercentiles ())
204
- .containsExactly (1 , 1.5 , 2 );
204
+ .containsExactly (0.2 , 0.4 , 0.8 );
205
205
}
206
206
207
207
@ Test
0 commit comments