Ejemplo n.º 1
0
func watchRCOrFail(t *testing.T, rcs rcstore.Store, id rc_fields.ID, desc string) (*rc_fields.RC, <-chan struct{}) {
	rc := rc_fields.RC{ID: id}
	updated, errors := rcs.Watch(&rc, nil)
	go failOnError(t, desc, errors)
	return &rc, updated
}