@@ -26,17 +26,17 @@ func TestWithPoolFullErr(t *testing.T) {
2626 return nil
2727 }
2828
29- conf := & config {newPoolFullErr : nil }
29+ conf := & config {newPoolFullErrFunc : nil }
3030 WithPoolFullErr (newPoolFullErr )(conf )
3131
32- if fmt .Sprintf ("%p" , conf .newPoolFullErr ) != fmt .Sprintf ("%p" , newPoolFullErr ) {
33- t .Fatalf ("conf.newPoolFullErr %p is wrong" , conf .newPoolFullErr )
32+ if fmt .Sprintf ("%p" , conf .newPoolFullErrFunc ) != fmt .Sprintf ("%p" , newPoolFullErr ) {
33+ t .Fatalf ("conf.newPoolFullErr %p is wrong" , conf .newPoolFullErrFunc )
3434 }
3535
3636 WithPoolFullErr (nil )(conf )
3737
38- if fmt .Sprintf ("%p" , conf .newPoolFullErr ) != fmt .Sprintf ("%p" , newPoolFullErr ) {
39- t .Fatalf ("conf.newPoolFullErr %p is wrong" , conf .newPoolFullErr )
38+ if fmt .Sprintf ("%p" , conf .newPoolFullErrFunc ) != fmt .Sprintf ("%p" , newPoolFullErr ) {
39+ t .Fatalf ("conf.newPoolFullErr %p is wrong" , conf .newPoolFullErrFunc )
4040 }
4141}
4242
@@ -46,16 +46,16 @@ func TestWithPoolClosedErr(t *testing.T) {
4646 return nil
4747 }
4848
49- conf := & config {newPoolClosedErr : nil }
49+ conf := & config {newPoolClosedErrFunc : nil }
5050 WithPoolClosedErr (newPoolClosedErr )(conf )
5151
52- if fmt .Sprintf ("%p" , conf .newPoolClosedErr ) != fmt .Sprintf ("%p" , newPoolClosedErr ) {
53- t .Fatalf ("conf.newPoolClosedErr %p is wrong" , conf .newPoolClosedErr )
52+ if fmt .Sprintf ("%p" , conf .newPoolClosedErrFunc ) != fmt .Sprintf ("%p" , newPoolClosedErr ) {
53+ t .Fatalf ("conf.newPoolClosedErr %p is wrong" , conf .newPoolClosedErrFunc )
5454 }
5555
5656 WithPoolClosedErr (nil )(conf )
5757
58- if fmt .Sprintf ("%p" , conf .newPoolClosedErr ) != fmt .Sprintf ("%p" , newPoolClosedErr ) {
59- t .Fatalf ("conf.newPoolClosedErr %p is wrong" , conf .newPoolClosedErr )
58+ if fmt .Sprintf ("%p" , conf .newPoolClosedErrFunc ) != fmt .Sprintf ("%p" , newPoolClosedErr ) {
59+ t .Fatalf ("conf.newPoolClosedErr %p is wrong" , conf .newPoolClosedErrFunc )
6060 }
6161}
0 commit comments