mirror of
https://github.com/ClusterCockpit/cc-metric-store.git
synced 2024-12-27 09:19:06 +01:00
Update archive_test.go
This commit is contained in:
parent
04cf55534f
commit
eb5b22e3d5
@ -1,7 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -23,6 +25,8 @@ func TestFromCheckpoint(t *testing.T) {
|
|||||||
log.Printf("Checkpoints loaded (%d files, %d MB, that took %fs)\n", files, loadedData, time.Since(startupTime).Seconds())
|
log.Printf("Checkpoints loaded (%d files, %d MB, that took %fs)\n", files, loadedData, time.Since(startupTime).Seconds())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.DebugDump(bufio.NewWriter(os.Stdout), nil)
|
||||||
|
|
||||||
if files != 2 {
|
if files != 2 {
|
||||||
t.Errorf("expected: %d, got: %d\n", 2, files)
|
t.Errorf("expected: %d, got: %d\n", 2, files)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user