From 4ea49123333250daddee99d999f2265cc2c4ed2d Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Thu, 6 Dec 2018 16:01:06 +0300 Subject: [PATCH] fix test --- src/main.go | 2 +- src/routing_test.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.go b/src/main.go index 1a1ee8d..347dd3e 100644 --- a/src/main.go +++ b/src/main.go @@ -15,7 +15,7 @@ type Options struct { } const Type = "telegram" -const MaxCharsCount = 4096 +const MaxCharsCount uint16 = 4096 var ( config *TransportConfig diff --git a/src/routing_test.go b/src/routing_test.go index 2504e8c..c7b1a41 100644 --- a/src/routing_test.go +++ b/src/routing_test.go @@ -66,10 +66,11 @@ func TestRouting_addBotHandler(t *testing.T) { Read: v1.ChannelFeatureNone, }, Text: v1.ChannelSettingsText{ - Creating: v1.ChannelFeatureBoth, - Editing: v1.ChannelFeatureBoth, - Quoting: v1.ChannelFeatureBoth, - Deleting: v1.ChannelFeatureReceive, + Creating: v1.ChannelFeatureBoth, + Editing: v1.ChannelFeatureBoth, + Quoting: v1.ChannelFeatureBoth, + Deleting: v1.ChannelFeatureReceive, + MaxCharsCount: MaxCharsCount, }, Product: v1.Product{ Creating: v1.ChannelFeatureReceive,