updated TestManageVouchers to match filtering of active vouchers

This commit is contained in:
Alfred Kamanda 2025-07-21 11:28:05 +03:00
parent 4ce9baa379
commit e27905765c
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -73,8 +73,8 @@ func TestManageVouchers(t *testing.T) {
Balance: "100",
},
},
expectedVoucherSymbols: []byte("1:TOKEN1"),
expectedUpdatedAddress: []byte("0x123"),
expectedVoucherSymbols: []byte(""),
expectedUpdatedAddress: []byte(""),
expectedResult: resource.Result{
FlagReset: []uint32{flag_api_error, flag_no_active_voucher},
},
@ -86,7 +86,7 @@ func TestManageVouchers(t *testing.T) {
{TokenAddress: "0x41c188d63Qa", TokenSymbol: "MILO", TokenDecimals: "4", Balance: "200"},
},
storedActiveVoucher: "SRF",
expectedVoucherSymbols: []byte("1:SRF\n2:MILO"),
expectedVoucherSymbols: []byte("1:MILO"),
expectedUpdatedAddress: []byte("0xd4c288865Ce"),
expectedResult: resource.Result{
FlagReset: []uint32{flag_api_error, flag_no_active_voucher},