node.js tests always time out, but works fine locally
This is a mocha error:
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
and this is from elsewhere:
npm : npm ERR! Test failed. See above for more details.
At line:1 char:1
+ npm test # PowerShell
+ ~~~~~~~~
+ CategoryInfo : NotSpecified: (npm ERR! Test f...r more details.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Command executed with exception: npm ERR! Test failed. See above for more details.
https://ci.appveyor.com/project/stevenvachon/winattrComments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 15 May, 2015 11:15 PM
What does that test do?
- Feodor
2 Posted by Steven Vachon on 16 May, 2015 01:03 PM
It runs a shell command:
https://github.com/stevenvachon/winattr/blob/master/lib/exec/index....which runs this hostscript: https://github.com/stevenvachon/winattr/blob/master/lib/exec/hostsc...
Support Staff 3 Posted by Feodor Fitsner on 18 May, 2015 05:48 PM
On Pro faster environment that test worked: https://ci.appveyor.com/project/FeodorFitsner/winattr
Apparently, 2 seconds timeout is not enough on Azure instances to complete the call to cscript.
4 Posted by Steven Vachon on 19 May, 2015 01:00 PM
The node v0.10 tests are passing now that the timeout has been increased to 5 seconds, but I don't understand why that made a difference because the test runner (mocha) reports that the tests only took 100–150ms to complete.
Node v0.12 tests are failing with a new error: https://ci.appveyor.com/project/stevenvachon/winattr/build/job/agdl...
5 Posted by Steven Vachon on 20 May, 2015 10:12 PM
Any idea why that library failed to install in x86 but not x64? It appears to be consistent.
Support Staff 6 Posted by Feodor Fitsner on 20 May, 2015 10:14 PM
What's your appveyor.yml?
7 Posted by Steven Vachon on 20 May, 2015 10:18 PM
Support Staff 8 Posted by Feodor Fitsner on 20 May, 2015 10:19 PM
OK,
platformdoes nothing with this setup.To switch node.js platform use:
9 Posted by Steven Vachon on 21 May, 2015 01:48 AM
I'll try, but the build page communicates that it worked as I'd expected it to:
Support Staff 10 Posted by Feodor Fitsner on 21 May, 2015 03:49 AM
platformwas primarily introduced for MSBuild, but became popular in other applications later.platformdoesn't mean you are selecting the bitness of underlying operating system - it's always Windows Server 2012 R2 x64. However,platformis assigned to environment variable and can be used in cmdlet switching node.js or other places.11 Posted by Steven Vachon on 21 May, 2015 12:50 PM
Very interesting. Thank you! It all appears to be running well now!
Steven Vachon closed this discussion on 21 May, 2015 12:51 PM.