Declare variable in the right place.
This commit is contained in:
parent
ec7e50e8e0
commit
a07235f74d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue