Skip to content

Commit

Permalink
Fixed findings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Aug 22, 2023
1 parent 3de9f47 commit 31c1fe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ class QuestDBMetricsLoggerTest {
assertEquals(1, aaa.size)

feed.close()

logger.close()

val logger2 = QuestDBMetricsLogger(folder.toPath())
logger2.loadPreviousRuns()
val aaa2 = logger2.getMetric("aaa", "myrun")
assertEquals(1, aaa2.size)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface MetricsLogger : Lifecycle {
* The result is a Map with the key being the run-name and the value being the [TimeSeries].
*
* This is optional to implement for a MetricsLogger since not all metric-loggers store metrics.
* Use [metricNames] to see which metrics are available.
* Use [getMetricNames] to see which metrics are available.
*/
fun getMetric(metricName: String): Map<String, TimeSeries> = buildMap {
runs.forEach {
Expand Down

0 comments on commit 31c1fe0

Please sign in to comment.