@@ -26,7 +26,7 @@ func TestConfirmOneResequences(t *testing.T) {
2626 c .Listen (l )
2727
2828 for i := range fixtures {
29- if want , got := uint64 (i + 1 ), c .Publish (); want != got .DeliveryTag {
29+ if want , got := uint64 (i + 1 ), c .publish (); want != got .DeliveryTag {
3030 t .Fatalf ("expected publish to return the 1 based delivery tag published, want: %d, got: %d" , want , got .DeliveryTag )
3131 }
3232 }
@@ -64,7 +64,7 @@ func TestConfirmAndPublishDoNotDeadlock(t *testing.T) {
6464 }()
6565
6666 for i := 0 ; i < iterations ; i ++ {
67- c .Publish ()
67+ c .publish ()
6868 <- l
6969 }
7070}
@@ -82,7 +82,7 @@ func TestConfirmMixedResequences(t *testing.T) {
8282 c .Listen (l )
8383
8484 for range fixtures {
85- c .Publish ()
85+ c .publish ()
8686 }
8787
8888 c .One (fixtures [0 ])
@@ -117,7 +117,7 @@ func TestConfirmMultipleResequences(t *testing.T) {
117117 c .Listen (l )
118118
119119 for range fixtures {
120- c .Publish ()
120+ c .publish ()
121121 }
122122
123123 c .Multiple (fixtures [len (fixtures )- 1 ])
@@ -141,7 +141,7 @@ func BenchmarkSequentialBufferedConfirms(t *testing.B) {
141141 if i > cap (l )- 1 {
142142 <- l
143143 }
144- c .One (Confirmation {c .Publish ().DeliveryTag , true })
144+ c .One (Confirmation {c .publish ().DeliveryTag , true })
145145 }
146146}
147147
@@ -159,7 +159,7 @@ func TestConfirmsIsThreadSafe(t *testing.T) {
159159 c .Listen (l )
160160
161161 for i := 0 ; i < count ; i ++ {
162- go func () { pub <- Confirmation {c .Publish ().DeliveryTag , true } }()
162+ go func () { pub <- Confirmation {c .publish ().DeliveryTag , true } }()
163163 }
164164
165165 for i := 0 ; i < count ; i ++ {
0 commit comments