Giter VIP home page Giter VIP logo

Comments (11)

AlCalzone avatar AlCalzone commented on July 29, 2024 1

Could you check if the problem persists with 2.4.2?

from testing.

Excodibur avatar Excodibur commented on July 29, 2024 1

I updated iobroker/testing to 2.4.2 as suggested now.

It looks like it is working properly now:

Before
Test logs on Windows (with error)

 Objects 127.0.0.1:50076 Redis Socket error: Error: read ECONNRESET
 Objects 127.0.0.1:50077 Redis Socket error: Error: read ECONNRESET
 Objects 127.0.0.1:50078 Redis Socket error: Error: read ECONNRESET
 States 127.0.0.1:50079 Redis Socket error: Error: read ECONNRESET
 States 127.0.0.1:50080 Redis Socket error: Error: read ECONNRESET
 States 127.0.0.1:50081 Redis Socket error: Error: read ECONNRESET

After
Test logs on Windows (error gone, normal shutdown)

schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server States 127.0.0.1:50255 close Redis connection
schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server States 127.0.0.1:50256 close Redis connection
schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server States 127.0.0.1:50257 close Redis connection
schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server Objects 127.0.0.1:50252 close Redis connection
schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server Objects 127.0.0.1:50254 close Redis connection
schwoerer-ventcube.0 (3000) Redis QUIT received, close connection
Server Objects 127.0.0.1:50253 close Redis connection
Server Redis QUIT received, close connection
Server Objects 127.0.0.1:50247 close Redis connection
Server Redis QUIT received, close connection
Server Objects 127.0.0.1:50248 close Redis connection
Server Objects 127.0.0.1:50248 close Redis connection
Server Redis QUIT received, close connection
Server States 127.0.0.1:50249 close Redis connection
Server Redis QUIT received, close connection
Server States 127.0.0.1:50250 close Redis connection
Server States 127.0.0.1:50250 close Redis connection

Thank you for fixing it! The issue can be closed.

from testing.

AlCalzone avatar AlCalzone commented on July 29, 2024

@Apollon77 any idea what might cause this?

from testing.

AlCalzone avatar AlCalzone commented on July 29, 2024

Actually, I might have an idea. @Excodibur can you try to stop the controller after each of your custom tests?
This is what the main integration test does internally:

// Stopping the processes may take a while
this.timeout(30000);
// Stop the controller again
await harness.stopController();
harness.removeAllListeners();

from testing.

AlCalzone avatar AlCalzone commented on July 29, 2024

Anyways, thanks for trying this out. I always wanted to, but never had the time to do any proper integration testing besides "does the adapters start?".

from testing.

Excodibur avatar Excodibur commented on July 29, 2024

I'll give it a try.

Still I am wonding if it will help, since the logs seem to indicate that problem is caused at the end of the standard "adapter start" test, which I have no control over. When I get to the additional tests, it seems broken already.

from testing.

Excodibur avatar Excodibur commented on July 29, 2024

Unfortunately, the result is the same: https://travis-ci.org/github/Excodibur/ioBroker.schwoerer-ventcube/jobs/725862384

I added the following lines beforehand:
https://github.com/Excodibur/ioBroker.schwoerer-ventcube/blob/3623554643c654000ee5dea53a3367bc61babd41/test/integration.js#L56-L57

Since my mockserver (port 10502) has similiar issues between tests (and that one is not controlled by test harness), I suspect it might even be something on Travis-side. According to them "Windows builds are in early-access stage", so maybe the issue originates from that.

from testing.

Excodibur avatar Excodibur commented on July 29, 2024

Fyi, I can currently reproduce the same error behaviour on my local Windows 10 workstation, so I guess issues from Travis-CI are unlikely.

from testing.

AlCalzone avatar AlCalzone commented on July 29, 2024

Ok that will help narrow it down. I should be able to reproduce it locally. Can you give me a branch or specific commit I can use to test myself?

from testing.

Excodibur avatar Excodibur commented on July 29, 2024

Thanks! Commit Excodibur/ioBroker.schwoerer-ventcube@3623554 (currently latest) would be a good basis for tests.

from testing.

Apollon77 avatar Apollon77 commented on July 29, 2024

ECONNRESET should mean that the db opened by the "controller part" was destroyed and so the DB was noh longer reachable, but adapter code was still connected. normally adapter should stop first and destroy the clientconnections before server is ended

from testing.

Related Issues (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.