Add WrapHandler to automatically call Tick on every request
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestIdlerChan(t *testing.T) {
|
||||
func TestIdlerChan(_ *testing.T) {
|
||||
i := CreateIdler(1 * time.Second)
|
||||
<-i.Chan()
|
||||
}
|
||||
|
Reference in New Issue
Block a user