test(dispatch): red for #28 — saturated flock must honor context, all dispatch through Flock
This commit is contained in:
1 parent
9f457eb512
commit
c957bdd3f6
2 files changed
+175
No files matched your search
@@ -214,3 +214,9 @@ func promote(s *Server, crows ...string) {
|
||||
s.p.Ledger.Crows[c+"|other"] = &Record{Approved: 10, Streak: 10, Level: Regular}
|
||||
}
|
||||
}
|
||||
|
||||
// serve mounts a server's handler on a test HTTP server.
|
||||
func serve(s *Server) *httptest.Server {
|
||||
ts := httptest.NewServer(s.Handler())
|
||||
return ts
|
||||
}
|
||||
Reference in new issue
Block a user