GithubHelp home page GithubHelp logo

Test timeout error about hemera-testsuite HOT 6 CLOSED

hemerajs avatar hemerajs commented on June 11, 2024
Test timeout error

from hemera-testsuite.

Comments (6)

StarpTech avatar StarpTech commented on June 11, 2024

Hi @vforv I checked your code and I found out that you never called the callback from server method { topic: 'user', cmd: 'login' } search for cb and you can find it only once.

from hemera-testsuite.

vforv avatar vforv commented on June 11, 2024

@StarpTech I forgot to add cb when I was the reproducting error... But it is not an issue... I update code same error still occurs, you can see when you run code first action never run...

from hemera-testsuite.

StarpTech avatar StarpTech commented on June 11, 2024

Remove in both stubs the objects and it works. actStub expect a schema.

            // stub act calls
            actStub.stub({
                topic: 'mongo-store',
                cmd: 'find',
                collection: 'users',
                //query: { email: '[email protected]' }
            }, null, { result: [] })

            actStub.stub({
                topic: 'mongo-store',
                cmd: 'create',
                collection: 'users',
                //data: userData
            }, null, "Mail sent")

from hemera-testsuite.

StarpTech avatar StarpTech commented on June 11, 2024

@vforv I will think about the current behavior. It should be possible to mock the exact pattern.

from hemera-testsuite.

StarpTech avatar StarpTech commented on June 11, 2024

Hi @vforv I revert my old changes and released [email protected]. I tested with your repo and everything works great.

from hemera-testsuite.

vforv avatar vforv commented on June 11, 2024

Great, thank you. It works now but I have another problem. I will close this issue and open a new one.

from hemera-testsuite.

Related Issues (9)

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.