Index: modules/simpletest/tests/actions.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/actions.test,v
retrieving revision 1.13
diff -u -r1.13 actions.test
--- modules/simpletest/tests/actions.test	30 Jan 2010 07:59:25 -0000	1.13
+++ modules/simpletest/tests/actions.test	16 Feb 2010 11:40:17 -0000
@@ -81,7 +81,7 @@
   }
 
   /**
-   * Set up a loop with 10-50 recursions, and see if it aborts properly.
+   * Set up a loop with 3 - 12 recursions, and see if it aborts properly.
    */
   function testActionLoop() {
     $user = $this->drupalCreateUser(array('administer actions'));
@@ -116,10 +116,9 @@
     }
     $expected[] = 'Stack overflow: too many calls to actions_do(). Aborting to prevent infinite recursion.';
 
-    $result = db_query("SELECT * FROM {watchdog} WHERE type = 'actions_loop_test' OR type = 'actions' ORDER BY timestamp");
+    $result = db_query("SELECT message FROM {watchdog} WHERE type = 'actions_loop_test' OR type = 'actions' ORDER BY wid");
     $loop_started = FALSE;
     foreach ($result as $row) {
-
       $expected_message = array_shift($expected);
       $this->assertEqual($row->message, $expected_message, t('Expected message %expected, got %message.', array('%expected' => $expected_message, '%message' => $row->message)));
     }
