Skip to content

Commit

Permalink
Merge pull request #168 from line/fix-TestBroadcastMessagesWithContext
Browse files Browse the repository at this point in the history
Fix testing #151
  • Loading branch information
Kazuhiro Kubota authored Jun 25, 2019
2 parents 5bede54 + 60e631e commit e6e7c0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions linebot/send_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1341,9 +1341,7 @@ func TestBroadcastMessagesWithContext(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Millisecond)
defer cancel()
_, err = client.BroadcastMessage(NewTextMessage("Hello, world")).WithContext(ctx).Do()
if err != context.DeadlineExceeded {
t.Errorf("err %v; want %v", err, context.DeadlineExceeded)
}
expectCtxDeadlineExceed(ctx, err, t)
}

func BenchmarkPushMessages(b *testing.B) {
Expand Down

0 comments on commit e6e7c0c

Please sign in to comment.