Declare variable in the right place.

This commit is contained in:
Bradley M. Kuhn 2015-12-30 17:02:50 -08:00
parent ec7e50e8e0
commit a07235f74d

View file

@ -155,7 +155,7 @@ dies_ok { my $ledgerId = $sp->getPublicAck(0); }
# Replace _verifyId() to always return true # Replace _verifyId() to always return true
$overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} ); my $overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} );
dies_ok { my $ledgerId = $sp->getPublicAck(0); } dies_ok { my $ledgerId = $sp->getPublicAck(0); }
"getPublicAck: fails when rows are not returned but _verifyId() somehow passed"; "getPublicAck: fails when rows are not returned but _verifyId() somehow passed";
$overrideSub->restore; $overrideSub->restore;
@ -186,7 +186,7 @@ dies_ok { my $ledgerId = $sp->getLedgerEntityId(0); }
# Replace _verifyId() to always return true # Replace _verifyId() to always return true
my $overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} ); $overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} );
dies_ok { my $ledgerId = $sp->getLedgerEntityId(0); } dies_ok { my $ledgerId = $sp->getLedgerEntityId(0); }
"getLedgerEntityId: fails when rows are not returned but _verifyId() somehow passed"; "getLedgerEntityId: fails when rows are not returned but _verifyId() somehow passed";
$overrideSub->restore; $overrideSub->restore;