Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: make StringTypeParameterTest 8.3+ since 8.2 misses enum types #882

Merged
merged 1 commit into from Jul 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions .travis.yml
Expand Up @@ -54,13 +54,6 @@ cache:

matrix:
fast_finish: true
allow_failures:
- env: # this has to match the environment for 8.2 below
- PG_VERSION=8.2
- XA=true
- COVERAGE=Y
- NO_HSTORE=Y
- CREATE_PLPGSQL=Y
include:
- jdk: oraclejdk8
env: RUN_CHECKSTYLE=true
Expand Down
Expand Up @@ -9,6 +9,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import org.postgresql.core.ServerVersion;
import org.postgresql.jdbc.PreferQueryMode;
import org.postgresql.test.TestUtil;
import org.postgresql.test.jdbc2.BaseTest4;
Expand Down Expand Up @@ -40,6 +41,8 @@ public StringTypeParameterTest(String stringType) {
@Override
public void setUp() throws Exception {
super.setUp();
// Assume enum supported
Assume.assumeTrue(TestUtil.haveMinimumServerVersion(con, ServerVersion.v8_3));
TestUtil.createEnumType(con, "mood", "'happy', 'sad'");
TestUtil.createTable(con, "stringtypetest", "m mood");
}
Expand Down