Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 42332632BAE for ; Sun, 3 May 2009 13:42:58 -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 66733-01 for ; Sun, 3 May 2009 13:42:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 746876327D6 for ; Sun, 3 May 2009 13:42:55 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 5EB78A3C9; Sun, 3 May 2009 12:42:53 -0400 (EDT) Date: Sun, 3 May 2009 12:42:52 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: John Lister cc: pgsql-jdbc@postgresql.org Subject: Re: Unit test patches In-Reply-To: <49FAC740.1060607@kickstone.com> Message-ID: References: <49FAC740.1060607@kickstone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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/17 X-Sequence-Number: 19567 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. > 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. Kris Jurka