Skip to content

Commit 7c0b813

Browse files
committed
Increasing timeouts for tests which create databases
1 parent effc7ee commit 7c0b813

9 files changed

+36
-9
lines changed

src/test/01-manipulating-databases.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { expect } from "chai";
55
const range = (n: number): number[] => Array.from(Array(n).keys());
66
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30000);
77

8-
describe("Manipulating databases", () => {
8+
describe("Manipulating databases", function() {
9+
// create database takes 11s in a standard cluster
10+
this.timeout(20000);
11+
912
let db: Database;
1013
beforeEach(() => {
1114
db = new Database({

src/test/02-accessing-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { expect } from "chai";
55

66
const range = (n: number): number[] => Array.from(Array(n).keys());
77

8-
describe("Accessing collections", () => {
8+
describe("Accessing collections", function() {
9+
// create database takes 11s in a standard cluster
10+
this.timeout(20000);
11+
912
let name = `testdb_${Date.now()}`;
1013
let db: Database;
1114
let builtinSystemCollections: string[];

src/test/03-accessing-graphs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { expect } from "chai";
44

55
const range = (n: number): number[] => Array.from(Array(n).keys());
66

7-
describe("Accessing graphs", () => {
7+
describe("Accessing graphs", function() {
8+
// create database takes 11s in a standard cluster
9+
this.timeout(20000);
10+
811
let name = `testdb_${Date.now()}`;
912
let db: Database;
1013
before(done => {

src/test/05-aql-queries.ts

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

6-
describe("AQL queries", () => {
6+
describe("AQL queries", function() {
7+
// create database takes 11s in a standard cluster
8+
this.timeout(20000);
9+
710
let name = `testdb_${Date.now()}`;
811
let db: Database;
912
before(done => {

src/test/12-simple-queries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const alpha = (i: number): string => String.fromCharCode("a".charCodeAt(0) + i);
88
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30000);
99
const describe2x = ARANGO_VERSION < 30000 ? describe : describe.skip;
1010

11-
describe("Simple queries", () => {
11+
describe("Simple queries", function() {
12+
// create database takes 11s in a standard cluster
13+
this.timeout(20000);
14+
1215
let name = `testdb_${Date.now()}`;
1316
let db: Database;
1417
let collection: DocumentCollection;

src/test/14-document-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { expect } from "chai";
55
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30000);
66
const it3x = ARANGO_VERSION >= 30000 ? it : it.skip;
77

8-
describe("DocumentCollection API", () => {
8+
describe("DocumentCollection API", function() {
9+
// create database takes 11s in a standard cluster
10+
this.timeout(20000);
11+
912
let name = `testdb_${Date.now()}`;
1013
let db: Database;
1114
let collection: DocumentCollection;

src/test/16-graphs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ function createGraph(
2727
});
2828
}
2929

30-
describe("Graph API", () => {
30+
describe("Graph API", function() {
31+
// create database takes 11s in a standard cluster
32+
this.timeout(20000);
33+
3134
let db: Database;
3235
let name = `testdb_${Date.now()}`;
3336
before(done => {

src/test/17-graph-vertices.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ function createGraph(
3030
});
3131
}
3232

33-
describe("Manipulating graph vertices", () => {
33+
describe("Manipulating graph vertices", function() {
34+
// create database takes 11s in a standard cluster
35+
this.timeout(20000);
36+
3437
let db: Database;
3538
let name = `testdb_${Date.now()}`;
3639
let graph: Graph;

src/test/23-aql-queries-stream.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { expect } from "chai";
66
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30000);
77
const describe34 = ARANGO_VERSION >= 30400 ? describe : describe.skip;
88

9-
describe34("AQL queries", () => {
9+
describe34("AQL Stream queries", function() {
10+
// create database takes 11s in a standard cluster
11+
this.timeout(20000);
12+
1013
let name = `testdb_${Date.now()}`;
1114
let db: Database;
1215
before(done => {

0 commit comments

Comments
 (0)