[CalendarServer-changes] [6814] CalendarServer/trunk/txdav/base/datastore/test/test_subpostgres.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 27 10:47:22 PST 2011


Revision: 6814
          http://trac.macosforge.org/projects/calendarserver/changeset/6814
Author:   wsanchez at apple.com
Date:     2011-01-27 10:47:22 -0800 (Thu, 27 Jan 2011)
Log Message:
-----------
Don't create test file turds outside of _trial_temp

Modified Paths:
--------------
    CalendarServer/trunk/txdav/base/datastore/test/test_subpostgres.py

Modified: CalendarServer/trunk/txdav/base/datastore/test/test_subpostgres.py
===================================================================
--- CalendarServer/trunk/txdav/base/datastore/test/test_subpostgres.py	2011-01-27 18:41:14 UTC (rev 6813)
+++ CalendarServer/trunk/txdav/base/datastore/test/test_subpostgres.py	2011-01-27 18:47:22 UTC (rev 6814)
@@ -66,11 +66,11 @@
                     cursor.close()
 
         svc = PostgresService(
-                CachingFilePath("../_postgres_test_db1"),
-                SimpleService1,
-                "create table TEST_DUMMY_TABLE (stub varchar)",
-                databaseName="dummy_db",
-                testMode=True
+            CachingFilePath("postgres_1.pgdb"),
+            SimpleService1,
+            "create table TEST_DUMMY_TABLE (stub varchar)",
+            databaseName="dummy_db",
+            testMode=True
         )
         svc.startService()
         self.addCleanup(svc.stopService)
@@ -116,12 +116,12 @@
                     cursor.close()
 
         svc = PostgresService(
-                CachingFilePath("../_postgres_test_db2"),
-                SimpleService2,
-                "create table TEST_DUMMY_TABLE (stub varchar)",
-                databaseName="dummy_db",
-                listenAddresses=['127.0.0.1',],
-                testMode=True
+            CachingFilePath("postgres_2.pgdb"),
+            SimpleService2,
+            "create table TEST_DUMMY_TABLE (stub varchar)",
+            databaseName="dummy_db",
+            listenAddresses=['127.0.0.1',],
+            testMode=True
         )
         svc.startService()
         self.addCleanup(svc.stopService)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110127/e07e9be0/attachment.html>


More information about the calendarserver-changes mailing list