Git Product home page Git Product logo

turbulent-test's People

Contributors

mathieugermain avatar

Watchers

 avatar

turbulent-test's Issues

Create backend Event Reminder Service

EventReminderManager class should have:

  • an array of IEventReminder
  • a method to save the array
  • a method to load the stored array
  • a process to check time
  • a method to add an event reminder
  • a method to trigger an event reminder

IEventReminder interface should have:

  • a title
  • a message
  • a trigger time

[Jest] A worker process has failed to exit gracefully and has been force exited.

Describe the bug
Somehow httpServer.listen(done); keeps a handle open. I tried everything I found on Google that was marked as "solution".
At least for now it's not breaking anything it's just annoying.

To Reproduce
Steps to reproduce the behavior:

  1. Create a jest test suite
  2. Start a server in beforeAll
  3. Close the server in afterAll
...
    // Start socket server at start of test suite
    beforeAll((done) => {
        httpServer = createServer();
        io = new Server(httpServer);
        httpServer.listen(done);
    });

    // Stop socket server at end of test suite
    afterAll((done) => {
        httpServer.close(done);
    });
 ...

Result

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

 โ—  Timeout

     25 |         httpServer = createServer();
     26 |         io = new Server(httpServer);
   > 27 |         httpServer.listen(done);
        |                    ^
     28 |     });
     29 |
     30 |     // Stop socket server at end of test suite

     at Object.<anonymous> (src/app/session.spec.ts:27:20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.