test: server Run, upstream 500/401 branches, virtual dead members, local DB accessor
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user