Skip to content

Commit ce5322d

Browse files
author
mpv1989
committed
Fix tests for cluster setup
1 parent 3a21d5a commit ce5322d

9 files changed

+36
-9
lines changed

src/test/06-managing-functions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Database } from "../arangojs";
22
import { expect } from "chai";
33

4-
describe("Managing functions", () => {
4+
describe("Managing functions", function() {
5+
// create database takes 11s in a standard cluster
6+
this.timeout(20000);
7+
58
let name = `testdb_${Date.now()}`;
69
let db: Database;
710
before(done => {

src/test/07-routes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ describe("Arbitrary HTTP routes", () => {
2525
});
2626
});
2727

28-
describe("Route API", () => {
28+
describe("Route API", function() {
29+
// create database takes 11s in a standard cluster
30+
this.timeout(20000);
31+
2932
const name = `testdb_${Date.now()}`;
3033
let db: Database;
3134
let collection: DocumentCollection;

src/test/09-collection-metadata.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { DocumentCollection } from "../collection";
33
import { expect } from "chai";
44

5-
describe("Collection metadata", () => {
5+
describe("Collection metadata", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
let db: Database;
710
let dbName = `testdb_${Date.now()}`;
811
let collection: DocumentCollection;

src/test/11-managing-indexes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { DocumentCollection } from "../collection";
33
import { expect } from "chai";
44

5-
describe("Managing indexes", () => {
5+
describe("Managing indexes", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
let db: Database;
710
let dbName = `testdb_${Date.now()}`;
811
let collection: DocumentCollection;

src/test/13-bulk-imports.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { DocumentCollection } from "../collection";
33
import { expect } from "chai";
44

5-
describe("Bulk imports", () => {
5+
describe("Bulk imports", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
let db: Database;
710
let dbName = `testdb_${Date.now()}`;
811
let collection: DocumentCollection;

src/test/15-edge-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { EdgeCollection } from "../collection";
33
import { expect } from "chai";
44

5-
describe("EdgeCollection API", () => {
5+
describe("EdgeCollection API", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
let name = `testdb_${Date.now()}`;
710
let db: Database;
811
let collection: EdgeCollection;

src/test/18-graph-edges.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { Graph } from "../graph";
33
import { expect } from "chai";
44

5-
describe("Manipulating graph edges", () => {
5+
describe("Manipulating graph edges", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
const dbName = `testdb_${Date.now()}`;
710
let db: Database;
811
const graphName = `testgraph_${Date.now()}`;

src/test/19-graph-vertex-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { GraphVertexCollection } from "../graph";
33
import { expect } from "chai";
44

5-
describe("GraphVertexCollection API", () => {
5+
describe("GraphVertexCollection API", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
const dbName = `testdb_${Date.now()}`;
710
let db: Database;
811
let collection: GraphVertexCollection;

src/test/20-graph-edge-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { Database } from "../arangojs";
22
import { GraphEdgeCollection } from "../graph";
33
import { expect } from "chai";
44

5-
describe("GraphEdgeCollection API", () => {
5+
describe("GraphEdgeCollection API", function() {
6+
// create database takes 11s in a standard cluster
7+
this.timeout(20000);
8+
69
const dbName = `testdb_${Date.now()}`;
710
let db: Database;
811
let edge: GraphEdgeCollection;

0 commit comments

Comments
 (0)