Comments (11)
Could you check if the problem persists with 2.4.2?
from testing.
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.
@Apollon77 any idea what might cause this?
from testing.
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:
testing/src/tests/integration/index.ts
Lines 117 to 122 in bfbb2bc
from testing.
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.
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.
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.
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.
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.
Thanks! Commit Excodibur/ioBroker.schwoerer-ventcube@3623554 (currently latest) would be a good basis for tests.
from testing.
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)
- DB needs to be up and running before installing the adapter instance
- Workflow fails when installing VIS (dependency) HOT 3
- Feature Request "setup of native objects for adapter initialization" (#218 proposal not working anymore) HOT 3
- Verify that no dependency "npm" is in the adapter
- Allow schedule adapters to quit immediately (don't check for .alive) HOT 10
- Upload at least www file sbefore start testing HOT 1
- Local run of integration tests fails instant with "js-controller running" error HOT 5
- Integration tests: residual objects in object database HOT 2
- Make loglevel configurable
- Add option to start instance only in beforeAll and stop it in afterAll HOT 1
- Support of suite.skip HOT 3
- Best way to wait for adapter stop? HOT 5
- no reply to sendTo received since update to 4.x HOT 1
- Unexpected Token Error for "Test and Release" Action HOT 2
- Clear tmp directory when switching controller versions
- Test io-pack against Schema HOT 1
- test-and-release fails for wwwOnly adapters HOT 2
- test-and-release: package check should check for adapter dependencies
- Test jsonConfig against schema HOT 1
- Add ts support to testings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testing.