resolve failing test

This commit is contained in:
Alfred Kamanda 2024-10-17 13:49:56 +03:00
parent 849a950fbc
commit eea3be3a39
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -1440,7 +1440,6 @@ func TestValidateAmount(t *testing.T) {
t.Logf(err.Error())
}
flag_invalid_amount, _ := fm.parser.GetFlag("flag_invalid_amount")
flag_api_error, _ := fm.GetFlag("flag_api_call_error")
mockDataStore := new(mocks.MockUserDataStore)
mockCreateAccountService := new(mocks.MockAccountService)
@ -1466,7 +1465,6 @@ func TestValidateAmount(t *testing.T) {
activeBal: []byte("0.003"),
expectedResult: resource.Result{
Content: "0.001",
FlagReset: []uint32{flag_api_error},
},
},
{
@ -1475,7 +1473,6 @@ func TestValidateAmount(t *testing.T) {
activeBal: []byte("0.003"),
expectedResult: resource.Result{
FlagSet: []uint32{flag_invalid_amount},
FlagReset: []uint32{flag_api_error},
Content: "0.02",
},
},
@ -1485,7 +1482,6 @@ func TestValidateAmount(t *testing.T) {
balance: "0.003 CELO",
expectedResult: resource.Result{
FlagSet: []uint32{flag_invalid_amount},
FlagReset: []uint32{flag_api_error},
Content: "0.02ms",
},
},