Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 184691337B69 for ; Mon, 18 Apr 2011 18:29:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 78300-05 for ; Mon, 18 Apr 2011 21:28:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 8C8B61337B49 for ; Mon, 18 Apr 2011 18:28:30 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 18 Apr 2011 16:28:30 -0500 Message-Id: <4DAC66AB020000250003C97F@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 18 Apr 2011 16:28:27 -0500 From: "Kevin Grittner" To: Subject: Test suite fails on non-default configuration Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/70 X-Sequence-Number: 21796 I just built a new jar file from a checkout of CVS HEAD, and (after fixing up the UNICODE versus UTF8 issue) the unit tests still failed on me: runtest: [junit] Testsuite: org.postgresql.test.jdbc2.Jdbc2TestSuite [junit] Tests run: 293, Failures: 1, Errors: 0, Time elapsed: 35.78 sec [junit] [junit] Testcase: testTransactionIsolation(org.postgresql.test.jdbc2.ConnectionTest): FAILED [junit] expected:<2> but was:<8> [junit] junit.framework.AssertionFailedError: expected:<2> but was:<8> [junit] at org.postgresql.test.jdbc2.ConnectionTest.testTransactionIsolation( ConnectionTest.java:210) [junit] [junit] [junit] Test org.postgresql.test.jdbc2.Jdbc2TestSuite FAILED The cause is that the cluster I was running against has a non-default postgresql.conf file -- default_transaction_isolation is set to serializable, which runs afoul of this: public void testTransactionIsolation() throws Exception { con = TestUtil.openDB(); // PostgreSQL defaults to READ COMMITTED assertEquals(Connection.TRANSACTION_READ_COMMITTED, con.getTransactionIsolation()); Should the unit tests really be failing based on configuration options? -Kevin