From 9f2d57ea0361c1d131b55a9d5080456eb80535d1 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 24 Oct 2024 10:10:14 +0300 Subject: [PATCH] update tests --- internal/handlers/ussd/menuhandler_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/handlers/ussd/menuhandler_test.go b/internal/handlers/ussd/menuhandler_test.go index 3b4b00f..8828690 100644 --- a/internal/handlers/ussd/menuhandler_test.go +++ b/internal/handlers/ussd/menuhandler_test.go @@ -75,11 +75,9 @@ func TestCreateAccount(t *testing.T) { } // Create required mocks flag_account_created, err := fm.GetFlag("flag_account_created") - flag_api_call_error, _ := fm.GetFlag("flag_api_call_error") if err != nil { t.Logf(err.Error()) } - // Define session ID and mock data sessionId := "session123" notFoundErr := db.ErrNotFound{} @@ -101,8 +99,7 @@ func TestCreateAccount(t *testing.T) { }, }, expectedResult: resource.Result{ - FlagSet: []uint32{flag_account_created}, - FlagReset: []uint32{flag_api_call_error}, + FlagSet: []uint32{flag_account_created}, }, }, }