Skip to content

How does one change the timeout of a service in a test? #2543

Answered by saul-jb
saul-jb asked this question in Q&A
Discussion options

You must be logged in to vote

Timeout needs to be set on the client object not the server object:

const feathers = require("@feathersjs/feathers");
const app = require("../src/app");

const client = feathers();

// Timeout needs to be set on the client object.
client.service("myService").timeout = 15000;

// This will not work
app.service("myService").timeout = 15000;

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@saul-jb
Comment options

@daffl
Comment options

@saul-jb
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by saul-jb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2542 on January 26, 2022 19:59.