eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

Update MpMetricOptionalTest#testGetAsync to verify that the time is measured correctly for async requests #531

Closed jmartisk closed 4 years ago

jmartisk commented 4 years ago

If we call an async method that takes a few seconds to complete, we could check that the elapsed time indeed is at least that amount of time (otherwise it could be that the measured time was just until the async method itself returned, rather than until the whole async processing was finished)