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:
7373``` go
7474fired := false
7575
76- tmr := mClock.Afterfunc (time.Second , func () {
76+ tmr := mClock.AfterFunc (time.Second , func () {
7777 fired = true
7878})
7979mClock.Advance (time.Second )
@@ -86,7 +86,7 @@ goroutines, so _do not_ immediately assert the results:
8686``` go
8787fired := false
8888
89- tmr := mClock.Afterfunc (time.Second , func () {
89+ tmr := mClock.AfterFunc (time.Second , func () {
9090 fired = true
9191})
9292mClock.Advance (time.Second )
@@ -105,7 +105,7 @@ fired := false
105105// set a test timeout so we don't wait the default `go test` timeout for a failure
106106ctx , cancel := context.WithTimeout (context.Background (), 10 *time.Second )
107107
108- tmr := mClock.Afterfunc (time.Second , func () {
108+ tmr := mClock.AfterFunc (time.Second , func () {
109109 fired = true
110110})
111111
You can’t perform that action at this time.
0 commit comments