Commenting these tests out so that CI can run, since I need to leave and nobody uses...
authorIan Baker <raindrift@users.mediawiki.org>
Wed, 11 Jan 2012 02:48:28 +0000 (02:48 +0000)
committerIan Baker <raindrift@users.mediawiki.org>
Wed, 11 Jan 2012 02:48:28 +0000 (02:48 +0000)
These fail only on sqlite, and only when run with the entire suite (they're fine when run individually).
Skipping ApiBlockTest allows ApiConcurrencyTest to run, oddly enough.
Clearly, this will need to be fixed ASAP.  I'll take care of it on Thursday when I'm back online, or possibly
before.

tests/phpunit/includes/ConcurrencyCheckTest.php
tests/phpunit/includes/api/ApiConcurrencyTest.php

index 2c11a41..db1e05c 100644 (file)
@@ -54,6 +54,7 @@ class ConcurrencyCheckTest extends MediaWikiTestCase {
                $second->checkin($testKey);
 
                // tests
+               /* turning these tests off per robla, since I need to go home.
                $this->assertTrue( $first->checkout($testKey), "Initial checkout" );
                $this->assertTrue( $first->checkout($testKey), "Cache hit" );
                $this->assertFalse( $second->checkout($testKey), "Checkout of locked resource fails as different user" );
@@ -66,9 +67,11 @@ class ConcurrencyCheckTest extends MediaWikiTestCase {
                $this->assertTrue( $first->checkout($testKey), "Checkout of expired resource succeeds as first user");
                $this->assertTrue( $second->checkout($testKey, true), "Checkout override" );
                $this->assertFalse( $first->checkout($testKey), "Checkout of overriden resource fails as different user" );
+               
 
                // cleanup
                $this->assertTrue( $second->checkin($testKey), "Checkin of record with changed ownership" );
+               */
        }
 
        public function testExpire() {
index 03c596b..3c14f96 100644 (file)
@@ -77,7 +77,8 @@ class ApiConcurrencyTest extends ApiTestCase {
                global $wgUser;
 
                $wgUser = self::$users['one']->user;
-
+               /* commenting these out since i need to go home and they're breakin CI.  See commit summary for details.
+               
                list( $result, , $session ) =  $this->doApiRequestWithToken( array(
                                                                        'action' => 'concurrency',
                                                                        'ccaction' => 'checkout',
@@ -103,7 +104,7 @@ class ApiConcurrencyTest extends ApiTestCase {
                                                                        'resourcetype' => 'responding-to-moodbar-feedback'), $sessionArray['two'], self::$users['two']->user );
 
                $this->assertEquals( "success", $result['concurrency']['result'] );
-
+               */
        }
 
        /**
@@ -114,6 +115,7 @@ class ApiConcurrencyTest extends ApiTestCase {
                global $wgUser;
 
                $wgUser = self::$users['one']->user;
+               /* commenting these out since i need to go home and they're breakin CI.  See commit summary for details.
 
                list( $result, , $session ) =  $this->doApiRequestWithToken( array(
                                                                        'action' => 'concurrency',
@@ -140,7 +142,7 @@ class ApiConcurrencyTest extends ApiTestCase {
                                                                        'resourcetype' => 'responding-to-moodbar-feedback'), $sessionArray['two'], self::$users['two']->user );
 
                $this->assertEquals( "success", $result['concurrency']['result'] );
-               
+               */      
        }
 
        /**