Skip to content

Commit

Permalink
fix: skip complex relation typeorm#1 test for CockroachDB (same as PSQL)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Dobell committed Jan 13, 2020
1 parent 3ed85ea commit fda5630
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -4,6 +4,7 @@ import {closeTestingConnections, createTestingConnections, reloadTestingDatabase
import {Post} from "./entity/Post";
import {prepareData} from "./find-options-test-utils";
import {PostgresDriver} from "../../../../src/driver/postgres/PostgresDriver";
import {CockroachDriver} from "../../../../src/driver/cockroachdb/CockroachDriver";

describe("find options > relations", () => {

Expand Down Expand Up @@ -45,7 +46,8 @@ describe("find options > relations", () => {

it("complex relation #1", () => Promise.all(connections.map(async connection => {

if (connection.driver instanceof PostgresDriver) // in postgres ordering works a bit different that's why we decided to skip it
// in postgres and cockroachdb ordering works a bit different that's why we decided to skip it
if (connection.driver instanceof PostgresDriver || connection.driver instanceof CockroachDriver)
return;

await prepareData(connection.manager);
Expand Down

0 comments on commit fda5630

Please sign in to comment.