simplify naming
This commit is contained in:
parent
ad44d95369
commit
77621be843
@ -195,10 +195,10 @@ func (b *SyncBus) ResetSignals(keys ...string) {
|
||||
b.reset <- keys
|
||||
}
|
||||
|
||||
// ResetAllSignals clears all the set signals.
|
||||
// Reset clears all the signals.
|
||||
//
|
||||
// If the receiver *SyncBus is nil, it is a noop.
|
||||
func (b *SyncBus) ResetAllSignals() {
|
||||
func (b *SyncBus) Reset() {
|
||||
if b == nil {
|
||||
return
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ func TestNilResetAll(t *testing.T) {
|
||||
tw.done()
|
||||
}()
|
||||
|
||||
bus.ResetAllSignals()
|
||||
bus.Reset()
|
||||
if err := tw.wait(); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
@ -284,7 +284,7 @@ func TestResetAll(t *testing.T) {
|
||||
bus.Signal("bar")
|
||||
bus.Signal("baz")
|
||||
|
||||
bus.ResetAllSignals()
|
||||
bus.Reset()
|
||||
if err := bus.Wait("foo", "bar", "baz"); err != ErrTimeout {
|
||||
t.Error("failed to timeout")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user