[Check_postgres-commit] [commit 1/9] Drop sequence at end of test (preserve original state of database)

check_postgres at bucardo.org check_postgres at bucardo.org
Fri Jun 12 18:17:07 UTC 2009


Committed by Jeff Boes <jeff at endpoint.com>

Subject: [commit 1/9] Drop sequence at end of test (preserve original state of database)

---
 t/02_sequence.t |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/t/02_sequence.t b/t/02_sequence.t
index 8f10f70..3bde49b 100644
--- a/t/02_sequence.t
+++ b/t/02_sequence.t
@@ -57,6 +57,8 @@ like ($cp->run(''), qr{ERROR:\s*(?:Could not determine|cannot access temporary)}
 $dbh->do("CREATE SEQUENCE $seqname");
 $cp->drop_sequence_if_exists($seqname.'2');
 
+END { $cp->drop_sequence_if_exists($seqname) }
+
 $t=qq{$S returns correct information for a new sequence};
 like ($cp->run(''), qr{OK:.+public.cp_test_sequence=0% \(calls left=9223372036854775806\)}, $t);
 
-- 
1.6.2.2



More information about the Check_postgres-commit mailing list