@@ -126,9 +126,9 @@ func TestAppSyncAuthorizers(t *testing.T) {
126126 }
127127 }()
128128
129- if err := client .Publish (ctx , appsync.PublishCommandInput {
129+ if _ , err := client .Publish (ctx , appsync.PublishCommandInput {
130130 Channel : channel ,
131- Payload : payload ,
131+ Events : [][] byte { payload } ,
132132 }); err != nil {
133133 t .Fatalf ("publish: %v" , err )
134134 }
@@ -284,9 +284,9 @@ func TestPerRequestAuthorizerOverride(t *testing.T) {
284284 }
285285 }()
286286
287- if err := client .Publish (ctx , appsync.PublishCommandInput {
287+ if _ , err := client .Publish (ctx , appsync.PublishCommandInput {
288288 Channel : channel ,
289- Payload : payload ,
289+ Events : [][] byte { payload } ,
290290 Authorizer : iam ,
291291 }); err != nil {
292292 t .Fatalf ("publish: %v" , err )
@@ -356,9 +356,9 @@ func TestConnectionSpecificAuthorizers(t *testing.T) {
356356 }
357357 }()
358358
359- if err := client .Publish (ctx , appsync.PublishCommandInput {
359+ if _ , err := client .Publish (ctx , appsync.PublishCommandInput {
360360 Channel : channel ,
361- Payload : payload ,
361+ Events : [][] byte { payload } ,
362362 }); err != nil {
363363 t .Fatalf ("publish: %v" , err )
364364 }
@@ -435,9 +435,9 @@ func TestMixedConnectionLevelAuthorizers(t *testing.T) {
435435 }
436436 }()
437437
438- if err := client .Publish (ctx , appsync.PublishCommandInput {
438+ if _ , err := client .Publish (ctx , appsync.PublishCommandInput {
439439 Channel : channel ,
440- Payload : payload ,
440+ Events : [][] byte { payload } ,
441441 }); err != nil {
442442 t .Fatalf ("publish: %v" , err )
443443 }
0 commit comments