Permalink
Browse files

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

…882)

PostgreSQL 8.2 tests at Travis should be green now, so removing allow_failures configuration
  • Loading branch information...
vlsi committed Jul 23, 2017
1 parent 246b759 commit ed0014cc03cedde76003a84c06a4f7b95b823de0
Showing with 3 additions and 7 deletions.
  1. +0 −7 .travis.yml
  2. +3 −0 pgjdbc/src/test/java/org/postgresql/test/jdbc3/StringTypeParameterTest.java
@@ -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
@@ -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;
@@ -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");
}

0 comments on commit ed0014c

Please sign in to comment.