1
0
Fork 0

Small code improvements

master
Philip O'Toole 8 months ago
parent eddd6b058c
commit 3979dd25af

@ -208,13 +208,13 @@ func Test_SinkFullSnapshot(t *testing.T) {
} }
compareMetas(t, expMeta3, metas3[0]) compareMetas(t, expMeta3, metas3[0])
// Look inside store, make sure everything was repead correctly. // Look inside store, make sure everything was reaped correctly.
dirs, err := os.ReadDir(store.Dir()) files, err := os.ReadDir(store.Dir())
if err != nil { if err != nil {
t.Fatalf("Failed to read dir: %v", err) t.Fatalf("Failed to read dir: %v", err)
} }
if len(dirs) != 2 { if len(files) != 2 {
t.Fatalf("Expected 2 files, got %d", len(dirs)) t.Fatalf("Expected 2 files, got %d", len(files))
} }
if !fileExists(filepath.Join(store.Dir(), "snap-91011.db")) { if !fileExists(filepath.Join(store.Dir(), "snap-91011.db")) {
t.Fatalf("Latest snapshot SQLite file does not exist") t.Fatalf("Latest snapshot SQLite file does not exist")

Loading…
Cancel
Save