Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Fix compilation failures from v.Unsubscribe + v.Register
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Mar 27, 2018
1 parent 679fe9b commit 8c14281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/view/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func Test_Worker_RecordFloat64(t *testing.T) {

// cleaning up
for _, v := range tc.registrations {
if err := v.Unregister(); err != nil {
if err := v.Unsubscribe(); err != nil {
t.Fatalf("%v: Unregistering from view %v errored with %v; want no error", tc.label, v.Name, err)
}
}
Expand Down Expand Up @@ -323,7 +323,7 @@ func TestWorkerStarttime(t *testing.T) {
v, _ := New("testview", "", nil, m, Count())

SetReportingPeriod(25 * time.Millisecond)
if err := v.Register(); err != nil {
if err := Register(v); err != nil {
t.Fatalf("cannot register to %v: %v", v.Name, err)
}

Expand Down

0 comments on commit 8c14281

Please sign in to comment.