Skip to content

Commit

Permalink
check existing gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Jan 15, 2025
1 parent 32dce6f commit 15a5493
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ class MetricsSystemSuite extends KyuubiFunSuite {
assert(metricsSystem.getGauge(MetricsConstants.THRIFT_SSL_CERT_EXPIRATION).isEmpty)
metricsSystem.registerGauge(
MetricsConstants.THRIFT_SSL_CERT_EXPIRATION,
() => System.currentTimeMillis(),
1000,
0)
assert(metricsSystem.getGauge(MetricsConstants.THRIFT_SSL_CERT_EXPIRATION).isDefined)
assert(metricsSystem.getGauge(MetricsConstants.THRIFT_SSL_CERT_EXPIRATION).get.getValue == 1000)

metricsSystem.stop()
}
Expand Down

0 comments on commit 15a5493

Please sign in to comment.