You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My LB3 app is mounted on the LB4 app and I try to run LB3 tests without success.
Loopback application is in a Docker for Windows container (image : node:16.6.2-stretch).
Before running all my LB3 tests I created a sample test as explaned in this document.
Running npm test failed with this error : Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (C:\Users\ddigusto\Documents\www\lyv_lyve\make-it-ici\server-lb4\lb3app\test\init.js)
Here my test file init.js:
'use strict';
const assert = require('assert');
const ExpressServer = require('../../dist/server').ExpressServer;
require('should');
let app;
describe('LoopBack 3 style integration tests - boot from express', function () {
before(async () => {
app = new ExpressServer();
await app.boot();
await app.start();
});
after(async () => {
await app.stop();
});
runTests();
});
function runTests() {
it('Utilisateur.find', function (done) {
assert.equal(1, 1);
done();
});
}
I try to unset timeout limitation but in this case, the test is ignore and npm execute the next command (posttest).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
My LB3 app is mounted on the LB4 app and I try to run LB3 tests without success.
Loopback application is in a Docker for Windows container (image : node:16.6.2-stretch).
Before running all my LB3 tests I created a sample test as explaned in this document.
Running
npm test
failed with this error :Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (C:\Users\ddigusto\Documents\www\lyv_lyve\make-it-ici\server-lb4\lb3app\test\init.js)
Here my test file init.js:
I try to unset timeout limitation but in this case, the test is ignore and npm execute the next command (posttest).
Thank's for your help.
Beta Was this translation helpful? Give feedback.
All reactions