anyhttp/idle/idle_test.go

12 lines
129 B
Go

package idle
import (
"testing"
"time"
)
func TestIdlerChan(t *testing.T) {
i := CreateIdler(1 * time.Second)
<-i.Chan()
}