@@ -13,7 +13,7 @@ func TestPool_Go(t *testing.T) {
1313 t .Parallel ()
1414 ctx , cancel := context .WithCancel (context .Background ())
1515 dispatcher := events.SyncDispatcher {}
16- p := newPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
16+ p := NewPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
1717 go p .Go (context .Background (), func (asyncContext context.Context ) {
1818 cancel ()
1919 })
@@ -26,7 +26,7 @@ func TestPool_Timeout(t *testing.T) {
2626 defer cancel ()
2727
2828 dispatcher := events.SyncDispatcher {}
29- p := newPool (WithTimeout (time .Second ), WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
29+ p := NewPool (WithTimeout (time .Second ), WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
3030 go p .Go (context .Background (), func (asyncContext context.Context ) {
3131 select {
3232 case <- asyncContext .Done ():
@@ -47,7 +47,7 @@ func TestPool_contextValue(t *testing.T) {
4747 defer cancel ()
4848
4949 dispatcher := events.SyncDispatcher {}
50- p := newPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
50+ p := NewPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
5151 key := struct {}{}
5252 requestContext := context .WithValue (context .Background (), key , "foo" )
5353 go p .Go (requestContext , func (asyncContext context.Context ) {
@@ -66,7 +66,7 @@ func TestPool_ProvideRunGroup(t *testing.T) {
6666 t .Parallel ()
6767 t .Run ("run group should exit if no shutdown event is specified" , func (t * testing.T ) {
6868 dispatcher := events.SyncDispatcher {}
69- p := newPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
69+ p := NewPool (WithConcurrency (1 ), WithShutdownEvents ())(& dispatcher )
7070 var group run.Group
7171 group .Add (func () error { return nil }, func (err error ) {})
7272 p .ProvideRunGroup (& group )
@@ -77,7 +77,7 @@ func TestPool_ProvideRunGroup(t *testing.T) {
7777 dispatcher := events.SyncDispatcher {}
7878 var fooEvent = "fooEvent"
7979 var barEvent = "barEvent"
80- p := newPool (WithConcurrency (1 ), WithShutdownEvents (fooEvent , barEvent ))(& dispatcher )
80+ p := NewPool (WithConcurrency (1 ), WithShutdownEvents (fooEvent , barEvent ))(& dispatcher )
8181 var group run.Group
8282 group .Add (func () error { return nil }, func (err error ) {})
8383 p .ProvideRunGroup (& group )
0 commit comments