logdb #56
| @ -2338,10 +2338,8 @@ func TestCheckBlockedStatus(t *testing.T) { | ||||
| 	if err != nil { | ||||
| 		t.Logf(err.Error()) | ||||
| 	} | ||||
| 	flag_account_blocked, err := fm.GetFlag("flag_account_blocked") | ||||
| 	if err != nil { | ||||
| 		t.Logf(err.Error()) | ||||
| 	} | ||||
| 	flag_account_blocked, _ := fm.GetFlag("flag_account_blocked") | ||||
| 	flag_account_pin_reset, _ := fm.GetFlag("flag_account_pin_reset") | ||||
| 
 | ||||
| 	h := &MenuHandlers{ | ||||
| 		userdataStore: store, | ||||
| @ -2356,13 +2354,15 @@ func TestCheckBlockedStatus(t *testing.T) { | ||||
| 		{ | ||||
| 			name:                    "Currently blocked account", | ||||
| 			currentWrongPinAttempts: "4", | ||||
| 			expectedResult:          resource.Result{}, | ||||
| 			expectedResult:          resource.Result{ | ||||
| 				FlagReset: []uint32{flag_account_pin_reset}, | ||||
| 			}, | ||||
| 		}, | ||||
| 		{ | ||||
| 			name:                    "Account with 0 wrong PIN attempts", | ||||
| 			currentWrongPinAttempts: "0", | ||||
| 			expectedResult: resource.Result{ | ||||
| 				FlagReset: []uint32{flag_account_blocked}, | ||||
| 				FlagReset: []uint32{flag_account_pin_reset, flag_account_blocked}, | ||||
| 			}, | ||||
| 		}, | ||||
| 	} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user