test: restore vault and worklog test baseline
This commit is contained in:
@@ -37,7 +37,7 @@ func setupTestApp(t *testing.T) (*App, string) {
|
|||||||
t.Fatalf("mkdir trash: %v", err)
|
t.Fatalf("mkdir trash: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
dbPath := filepath.Join(vaultRoot, ".verstak", "vault.db")
|
dbPath := filepath.Join(vaultRoot, ".verstak", "index.db")
|
||||||
db, err := storage.Open(dbPath)
|
db, err := storage.Open(dbPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("open db: %v", err)
|
t.Fatalf("open db: %v", err)
|
||||||
@@ -73,6 +73,7 @@ func setupTestApp(t *testing.T) (*App, string) {
|
|||||||
sync: syncSvc,
|
sync: syncSvc,
|
||||||
templates: templatesReg,
|
templates: templatesReg,
|
||||||
vault: vaultRoot,
|
vault: vaultRoot,
|
||||||
|
vaultOpen: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ func TestAddAndGet(t *testing.T) {
|
|||||||
if !e.Approximate {
|
if !e.Approximate {
|
||||||
t.Error("expected approximate")
|
t.Error("expected approximate")
|
||||||
}
|
}
|
||||||
if e.Date != time.Now().UTC().Format("2006-01-02") {
|
if e.Date != time.Now().Format("2006-01-02") {
|
||||||
t.Errorf("date = %q", e.Date)
|
t.Errorf("date = %q", e.Date)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user