overide the next-gen driver's default table name so the stress-test can run
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 21 Jan 2011 20:53:50 +0000 (15:53 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 21 Jan 2011 20:55:04 +0000 (15:55 -0500)
with the same migrations used in the unit tests.

framework/Share/test/Horde/Share/stress-test

index cc66d51..db0d241 100755 (executable)
@@ -87,7 +87,9 @@ default:
 $class = 'Horde_Share_' . implode('_', array_map(array('Horde_String', 'ucwords'), explode('_', $options['backend'])));
 $shares = new $class('test', false, new Horde_Perms(), new Horde_Group_Mock());
 $shares->setStorage($storage);
-
+if ($options['backend'] == 'sqlng') {
+    $shares->setTable('test_shares');
+}
 /* Start timer. */
 $timer = new Horde_Support_Timer();