SQL unit tests fixes
* Added plan() instead of no_plan() where necessary * Removed junk from dirty tests system self-check
This commit is contained in:
parent
44b6ec1920
commit
ba6a1e2b41
5 changed files with 9 additions and 11 deletions
legacyworlds-server-data/db-structure/tests/admin/040-functions/025-resources
|
@ -23,7 +23,7 @@ BEGIN;
|
|||
SELECT defs.add_resource_records( _get_string( 'test1' ) );
|
||||
|
||||
/***** TESTS BEGIN HERE *****/
|
||||
SELECT no_plan( );
|
||||
SELECT plan( 2 );
|
||||
|
||||
SELECT diag_test_name( 'defs.add_resource_records() - Empire record created' );
|
||||
SELECT is( COUNT(*)::INT , 1 )
|
||||
|
@ -36,4 +36,4 @@ BEGIN;
|
|||
WHERE planet_id = 1 AND resource_name_id = _get_string( 'test1' );
|
||||
|
||||
SELECT * FROM finish( );
|
||||
ROLLBACK;
|
||||
ROLLBACK;
|
||||
|
|
Reference in a new issue