From a07235f74d18ba5fe38ed9a49ae39a5c32aea827 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 30 Dec 2015 17:02:50 -0800 Subject: [PATCH] Declare variable in the right place. --- Supporters/t/Supporters.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index b61d331..873b3d6 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -155,7 +155,7 @@ dies_ok { my $ledgerId = $sp->getPublicAck(0); } # 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); } "getPublicAck: fails when rows are not returned but _verifyId() somehow passed"; $overrideSub->restore; @@ -186,7 +186,7 @@ dies_ok { my $ledgerId = $sp->getLedgerEntityId(0); } # 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); } "getLedgerEntityId: fails when rows are not returned but _verifyId() somehow passed"; $overrideSub->restore;