18 lines
380 B
MySQL
18 lines
380 B
MySQL
|
/*
|
||
|
* Dirty test system self-check
|
||
|
*
|
||
|
* Insert an address, it should exist during the main test.
|
||
|
*/
|
||
|
BEGIN;
|
||
|
SELECT no_plan( );
|
||
|
|
||
|
SELECT pg_advisory_lock( 1 );
|
||
|
|
||
|
SELECT diag_test_name( 'Dirty test system self-check - prepare.sql was executed' );
|
||
|
SELECT is( COUNT(*)::INT , 1 )
|
||
|
FROM users.addresses
|
||
|
WHERE address = 'prepare@example.org';
|
||
|
|
||
|
SELECT * FROM finish( );
|
||
|
ROLLBACK;
|