diff --git a/botsfw/botsdal/dal_bot_user_test.go b/botsfw/botsdal/dal_bot_user_test.go index b48debc..f17e0b9 100644 --- a/botsfw/botsdal/dal_bot_user_test.go +++ b/botsfw/botsdal/dal_bot_user_test.go @@ -23,6 +23,7 @@ func TestGetBotUser(t *testing.T) { }{ {name: "empty", shouldPanic: true}, } + ctx := context.Background() for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if tt.shouldPanic { @@ -33,7 +34,7 @@ func TestGetBotUser(t *testing.T) { }() } var tx dal.ReadwriteTransaction - botUser, err := GetBotUser(nil, tx, tt.args.platform, tt.args.botID, tt.args.botUserID, func() botsfwmodels.BotUserData { + botUser, err := GetBotUser(ctx, tx, tt.args.platform, tt.args.botID, tt.args.botUserID, func() botsfwmodels.BotUserData { return nil }) tt.checkResult(botUser, err) diff --git a/go.mod b/go.mod index 1626132..88d8d8b 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/stretchr/testify v1.8.4 github.com/strongo/gamp v0.0.1 github.com/strongo/i18n v0.0.4 - github.com/strongo/strongoapp v0.10.0 + github.com/strongo/strongoapp v0.11.0 ) require ( diff --git a/go.sum b/go.sum index 473d0b3..9de3df9 100644 --- a/go.sum +++ b/go.sum @@ -22,6 +22,8 @@ github.com/strongo/strongoapp v0.9.1 h1:M3JqRZtqftTHGqnekW3ncNYYqLv2B1weye7yhPIG github.com/strongo/strongoapp v0.9.1/go.mod h1:UWRe4rYG7val1PRumvd+V1TbCHmckfHr3DQ+OzvYnqo= github.com/strongo/strongoapp v0.10.0 h1:HWB3UgaagtIr1UJxZ0oKGSdVPVw8Qfhq+/u50Rknqfw= github.com/strongo/strongoapp v0.10.0/go.mod h1:UWRe4rYG7val1PRumvd+V1TbCHmckfHr3DQ+OzvYnqo= +github.com/strongo/strongoapp v0.11.0 h1:KxGKpMNhJ92uTzGFx1GW0ppGII9b9huImM2kiQzqzSc= +github.com/strongo/strongoapp v0.11.0/go.mod h1:rOUznvRLPp77EVSCnTJ++ZLRODhdoALfs83PUJnzP0E= github.com/strongo/validation v0.0.6 h1:RskXD45ILagVW3jmuKUiq7WshE4kmoQEiUbgfigqHzw= github.com/strongo/validation v0.0.6/go.mod h1:V4Nu8b8CPsLNwYLKmMHN2ghkoabOpiOW8NNcUczuCWE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=