-
How does one change the timeout of a service in a test? The does not work in the test despite working on the client: const app = require("../src/app");
app.service("myService").timeout = 15000; Steps to reproduce
Expected behaviorThe test should pass. Actual behaviorThe test fails because of System configurationTell us about the applicable parts of your setup. Feathers version: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This is the timeout of the testing framework you are using. With Mocha and a normal setup you would add e.g. |
Beta Was this translation helpful? Give feedback.
-
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; |
Beta Was this translation helpful? Give feedback.
Timeout needs to be set on the client object not the server object: