File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ For example, with a timer:
73
73
``` go
74
74
fired := false
75
75
76
- tmr := mClock.Afterfunc (time.Second , func () {
76
+ tmr := mClock.AfterFunc (time.Second , func () {
77
77
fired = true
78
78
})
79
79
mClock.Advance (time.Second )
@@ -86,7 +86,7 @@ goroutines, so _do not_ immediately assert the results:
86
86
``` go
87
87
fired := false
88
88
89
- tmr := mClock.Afterfunc (time.Second , func () {
89
+ tmr := mClock.AfterFunc (time.Second , func () {
90
90
fired = true
91
91
})
92
92
mClock.Advance (time.Second )
@@ -105,7 +105,7 @@ fired := false
105
105
// set a test timeout so we don't wait the default `go test` timeout for a failure
106
106
ctx , cancel := context.WithTimeout (context.Background (), 10 *time.Second )
107
107
108
- tmr := mClock.Afterfunc (time.Second , func () {
108
+ tmr := mClock.AfterFunc (time.Second , func () {
109
109
fired = true
110
110
})
111
111
You can’t perform that action at this time.
0 commit comments