10223: Test simplification: better name, assertion error description added, and use...
[arvados.git] / services / ws / event_source.go
index 16538795f4b12ef5137e190f766b51b1199ffb2d..ea90ec72424c28ca23a40e86722e6219045e362d 100644 (file)
@@ -44,6 +44,8 @@ type pgEventSource struct {
        eventsOut  uint64
 }
 
+var _ debugStatuser = (*pgEventSource)(nil)
+
 func (ps *pgEventSource) setup() {
        ps.shutdown = make(chan error, 1)
        ps.sinks = make(map[*pgEventSink]bool)
@@ -172,7 +174,7 @@ func (ps *pgEventSource) DB() *sql.DB {
        return ps.db
 }
 
-func (ps *pgEventSource) Status() interface{} {
+func (ps *pgEventSource) DebugStatus() interface{} {
        ps.mtx.Lock()
        defer ps.mtx.Unlock()
        blocked := 0