From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Test suite fails on non-default configuration
Date: Mon, 18 Apr 2011 21:29:50 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1104182127510.27592@leary.csoft.net> (raw)
In-Reply-To: <18342.1303168369@sss.pgh.pa.us>
References: <4DAC66AB020000250003C97F@gw.wicourts.gov>
<18342.1303168369@sss.pgh.pa.us>
On Mon, 18 Apr 2011, Tom Lane wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>> // PostgreSQL defaults to READ COMMITTED
>> assertEquals(Connection.TRANSACTION_READ_COMMITTED,
>> con.getTransactionIsolation());
>
>> Should the unit tests really be failing based on configuration
>> options?
>
> Well, for a comparison point, you can certainly make the server's
> regression tests fail too if you whack the configuration around enough.
> I agree that the above seems perhaps overly fragile, but I don't think
> you can expect to have a general principle that the JDBC tests should
> pass regardless of configuration. It's more a question of how painful
> is it to support any particular nondefault configuration choice, and
> does it seem worth it based on real-world usage of the choice.
>
Exactly. In this case the tests were assuming too much for no real
purpose. I've checked in a fix to work with any default isolation level.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov
Subject: Re: Test suite fails on non-default configuration
In-Reply-To: <alpine.BSO.2.00.1104182127510.27592@leary.csoft.net>
References: <4DAC66AB020000250003C97F@gw.wicourts.gov> <18342.1303168369@sss.pgh.pa.us> <alpine.BSO.2.00.1104182127510.27592@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox