Skip to content

Commit 4a40eff

Browse files
committed
set test timeout using different syntax
1 parent 58f2148 commit 4a40eff

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

test/Ported/Cluster/ClusterOperationTest.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ describe("ClusterOperationTest", function () {
6565
}
6666
});
6767

68-
it.skip("nextIdentityForOperationShouldBroadcastAndFail", async () => {
68+
it.skip("nextIdentityForOperationShouldBroadcastAndFail", async function() {
69+
this.timeout(60_000);
70+
6971
const cluster = await testContext.createRaftCluster(3);
7072
try {
7173
const database = testContext.getDatabaseName();
@@ -115,7 +117,7 @@ describe("ClusterOperationTest", function () {
115117
} finally {
116118
cluster.dispose();
117119
}
118-
}).timeout(60_000);
120+
});
119121

120122
it.skip("changesApiFailOver", async () => {
121123
const db = "Test";

test/Ported/Server/Replication/DocumentReplicationTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const _describe = RavenTestContext.isPullRequest ? describe.skip : describe;
1818
_describe(
1919
`${RavenTestContext.isPullRequest ? "[Skipped on PR] " : ""}` +
2020
"DocumentReplicationTest", function () {
21-
this.timeout(20000);
21+
this.timeout(20_000);
2222

2323
let store: IDocumentStore;
2424
let replication: ReplicationTestContext;

test/Ported/Server/Replication/PullReplicationTest.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,11 @@ import { PullReplicationDefinition } from "../../../../src/Documents/Operations/
269269
}
270270
});
271271

272-
it("updatePullReplicationOnHub", async () => {
272+
it("updatePullReplicationOnHub", async function() {
273273
let sink: IDocumentStore;
274+
275+
this.timeout(60_000);
276+
274277
try {
275278
sink = await testContext.getDocumentStore();
276279
let hub: IDocumentStore;
@@ -328,7 +331,7 @@ import { PullReplicationDefinition } from "../../../../src/Documents/Operations/
328331
} finally {
329332
sink.dispose();
330333
}
331-
}).timeout(60_000);
334+
});
332335

333336
it("disablePullReplicationOnSink", async () => {
334337
let sink: IDocumentStore;

0 commit comments

Comments
 (0)