From e27905765c7badb0cce12a4349f6303f830f748b Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 21 Jul 2025 11:28:05 +0300 Subject: [PATCH] updated TestManageVouchers to match filtering of active vouchers --- handlers/application/vouchers_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/application/vouchers_test.go b/handlers/application/vouchers_test.go index e380829..1113a72 100644 --- a/handlers/application/vouchers_test.go +++ b/handlers/application/vouchers_test.go @@ -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},