test: server Run, upstream 500/401 branches, virtual dead members, local DB accessor

This commit is contained in:
2026-07-03 13:38:49 +10:00
parent 6029f19b86
commit cfd0bae515
3 changed files with 58 additions and 0 deletions
+7
View File
@@ -121,3 +121,10 @@ func TestLocalErrorPaths(t *testing.T) {
t.Errorf("remove = %d, want 500", c)
}
}
func TestLocalHandlerDBAccessor(t *testing.T) {
db := closedDB(t)
if NewLocalHandler(db, nil).DB() != db {
t.Error("DB() should return the handler's database")
}
}