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)
|
||||
}
|
||||
|
||||
dbPath := filepath.Join(vaultRoot, ".verstak", "vault.db")
|
||||
dbPath := filepath.Join(vaultRoot, ".verstak", "index.db")
|
||||
db, err := storage.Open(dbPath)
|
||||
if err != nil {
|
||||
t.Fatalf("open db: %v", err)
|
||||
@@ -73,6 +73,7 @@ func setupTestApp(t *testing.T) (*App, string) {
|
||||
sync: syncSvc,
|
||||
templates: templatesReg,
|
||||
vault: vaultRoot,
|
||||
vaultOpen: true,
|
||||
}
|
||||
|
||||
t.Cleanup(func() {
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestAddAndGet(t *testing.T) {
|
||||
if !e.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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user