'Laptop charger effects testing
Funny story (and question why does this happen):
NodeJS, mocha-chai test, the basic stuff, one of the code can be seen here
Yesterday evening I fixed a bug which caused one of the tests crashing. I ran the test, everything passed. Laptop was plugged in.
This morning I try again, without the charger plugged in. I surprisingly see that the first test always fails in almost every test file.
Since noone made any changes whatsoever to the code, I ran it a couple of times, restarted VSCode, nothing worked. As a last resort I was thinking that maybe the charger made a difference from yesterday, and IT DID.
Has this happened to anyone?
Info: Laptop is a Lenovo Y530 The tests involves setTimeout calls (but changing those timeouts made no difference) Sadly because of the NDA I cannot post the actual code :(
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
