@@ -113,7 +113,7 @@ func TestSubscribe(t *testing.T) {
113
113
}
114
114
115
115
// follow up with second message
116
- clientN , err := testClient .PUBLISHString (channel , message2 )
116
+ clientN , err := testClient .PUBLISH (channel , message2 )
117
117
if err != nil {
118
118
t .Error ("followup publish error:" , err )
119
119
return
@@ -166,7 +166,7 @@ func TestUnsubscribe(t *testing.T) {
166
166
l .UNSUBSCRIBE (channel )
167
167
awaitExecution ()
168
168
169
- clientCount , err := testClient .PUBLISHString (channel , "ping" )
169
+ clientCount , err := testClient .PUBLISH (channel , "ping" )
170
170
if err != nil {
171
171
t .Error ("publish got error:" , err )
172
172
} else if clientCount != 0 {
@@ -184,7 +184,7 @@ func TestUnsubscribeRace(t *testing.T) {
184
184
l .UNSUBSCRIBE (channel )
185
185
awaitExecution ()
186
186
187
- clientCount , err := testClient .PUBLISHString (channel , "ping" )
187
+ clientCount , err := testClient .PUBLISH (channel , "ping" )
188
188
if err != nil {
189
189
t .Error ("publish got error:" , err )
190
190
} else if clientCount != 0 {
@@ -232,12 +232,12 @@ func TestListenerClose(t *testing.T) {
232
232
// don't await execution
233
233
l .Close ()
234
234
235
- if n , err := testClient .PUBLISHString (channel1 , "ping" ); err != nil {
235
+ if n , err := testClient .PUBLISH (channel1 , "ping" ); err != nil {
236
236
t .Error ("publish error:" , err )
237
237
} else if n != 0 {
238
238
t .Errorf ("publish got %d clients, want 0" , n )
239
239
}
240
- if n , err := testClient .PUBLISHString (channel2 , "ping" ); err != nil {
240
+ if n , err := testClient .PUBLISH (channel2 , "ping" ); err != nil {
241
241
t .Error ("publish subscribe error:" , err )
242
242
} else if n != 0 {
243
243
t .Errorf ("publish subscribe got %d clients, want 0" , n )
0 commit comments