Skip to content

Commit

Permalink
test: make StringTypeParameterTest 8.3+ since 8.2 misses enum types (#…
Browse files Browse the repository at this point in the history
…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 ed0014c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
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

0 comments on commit ed0014c

Please sign in to comment.