60
84
endp := NewTestingEndpoint(condition.Work(true), m, n)
86
e := endp.WatchSignal("what", func(us ...interface{}) { ch <- us[0].(uint32) }, func() { close(ch) })
68
109
// Test that WatchSignal() with a negative condition returns an error.
69
110
func (s *TestingEndpointSuite) TestWatchFails(c *C) {
70
111
endp := NewTestingEndpoint(condition.Work(false))