From 0fa4a818262ae9d117e531273f5fe8cfd9c2a0ba Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 3 Oct 2024 11:42:41 +0300 Subject: [PATCH] updated the TestAuthorize --- internal/handlers/ussd/menuhandler_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/handlers/ussd/menuhandler_test.go b/internal/handlers/ussd/menuhandler_test.go index d0367f0..64d0b0e 100644 --- a/internal/handlers/ussd/menuhandler_test.go +++ b/internal/handlers/ussd/menuhandler_test.go @@ -892,7 +892,10 @@ func TestAuthorize(t *testing.T) { { name: "Test with pin that is not a 4 digit", input: []byte("1235aqds"), - expectedResult: resource.Result{}, + expectedResult: resource.Result{ + FlagReset: []uint32{flag_account_authorized}, + FlagSet: []uint32{flag_incorrect_pin}, + }, }, }