The problem is that the callback code doesn't seem to be executed. If I use the synchronous version of 'connect', things work as expected.
I have greated a github gist at (https://gist.github.com/twilkinson/00748d66bef5fff91852) that illustrates the problem.
There are 2 files:
You can see the output in *C:\Temp\tests.log".
All that shows in tests.log are the lines
start of test1A end of test1Awhere I would expect to also see the first 10 lines of the Customers table.
It is acting as if the script is terminated without waiting for the asynchronous code to complete. If I run similar code under nodejs directly, it behaves as I would expect with the first 10 lines of the Customer table showing up in the output file.
This occurs with the latest SA17 Developer Edition under both Windows and Linux.
asked 10 Feb '16, 11:46