Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AD593632E7B for ; Sun, 3 May 2009 14:54:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77103-07 for ; Sun, 3 May 2009 14:53:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mk-filter-1-a-1.mail.uk.tiscali.com (mk-filter-1-a-1.mail.uk.tiscali.com [212.74.100.52]) by mail.postgresql.org (Postfix) with ESMTP id 470A4632CE4 for ; Sun, 3 May 2009 14:53:59 -0300 (ADT) X-Trace: 192856816/mk-filter-1.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/62.64.158.120/None/john.lister-ps@kickstone.com X-SBRS: None X-RemoteIP: 62.64.158.120 X-IP-MAIL-FROM: john.lister-ps@kickstone.com X-SMTP-AUTH: X-MUA: Thunderbird 2.0.0.21 (Windows/20090302) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8CAFN3/Uk+QJ54/2dsb2JhbAAIzBeDfQU X-IronPort-AV: E=Sophos;i="4.40,287,1238972400"; d="scan'208";a="192856816" Received: from 62-64-158-120.dynamic.dial.as9105.com (HELO [192.168.6.11]) ([62.64.158.120]) by smtp.tiscali.co.uk with ESMTP; 03 May 2009 18:53:57 +0100 Message-ID: <49FDDA33.5070009@kickstone.com> Date: Sun, 03 May 2009 18:53:55 +0100 From: John Lister User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Kris Jurka CC: John Lister , pgsql-jdbc@postgresql.org Subject: Re: Unit test patches References: <49FAC740.1060607@kickstone.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/19 X-Sequence-Number: 19569 Kris Jurka wrote: > > > On Fri, 1 May 2009, John Lister wrote: > >> The first occurs in DatabaseMetaDataTest.testTables line 104: >> >> It fetches all the columns for any table beginning with test - i >> happen to have other tables named test... which causes this to fail. >> I've modified it to look for the testmetadata table, alternatively >> the docs should be altered to state that the test database should be >> clean. > > It is expected that the test database is empty. OK, maybe we should alter the docs, it only mentions that tables are created/dropped and shouldn't contain production tables, but nothing about it being empty. I'd forgotten i had some other tables in there... > >> The second in TimeTest.timeTest : line 269 & 283: >> The timezone tests fail because the as it happens local daylight >> savings is in effect, the code tries to test for this by submitting >> the time being tested, but this actually works out daylight savings >> for the time at the epoch (1/1/1970). I've modified it to use >> DST_OFFSET instead (note - this may fail if ran during the >> switchover period). > > What timezone are you running the tests in? I don't see them in > US/Pacific. Reproducing the failure would help. > GMT with DST in effect. JOHN