From 3b3567b5f6d9750a4b255284ed1059ead4eda926 Mon Sep 17 00:00:00 2001 From: andronache Date: Wed, 20 Oct 2021 17:27:51 +0300 Subject: [PATCH] Fixed wrong expected in test --- accounts/accounts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 16cd7935f..634a6b9c7 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -2533,8 +2533,8 @@ func TestV1AccountsForEventProfileIgnoreFilters(t *testing.T) { rply3 := make([]*utils.Account, 0) if err := dm.SetAccount(context.Background(), accPrf, true); err != nil { t.Error(err) - } else if err := accnts.V1AccountsForEvent(context.Background(), ev3, &rply3); err == nil || err.Error() != "received cannot convert field: 1s to bool" { - t.Errorf("Expected %+v, received %+v", nil, err) + } else if err := accnts.V1AccountsForEvent(context.Background(), ev3, &rply3); err == nil || err.Error() != "cannot convert field: 1s to bool" { + t.Errorf("Expected %+v, received %+v", "cannot convert field: 1s to bool", err) } }