-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3aa812
commit 3c1df70
Showing
16 changed files
with
156 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on windows machine | ||
|
||
node C:\Users\denman\WebstormProjects\poolio\test\test-poolio-w-suman.js | ||
|
||
and | ||
|
||
node C:\Users\denman\WebstormProjects\suman-private\index.js C:\Users\denman\WebstormProjects\poolio\test\test-poolio-w-suman.js | ||
|
||
both yield all tests timing out, so seems like some path problem | ||
|
||
everything is good when I run this | ||
|
||
https://www.dropbox.com/s/ywctusl9zlz9y88/Screenshot%202016-04-28%2020.16.21.png?dl=0 | ||
|
||
so something really weird is up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Created by denman on 5/3/2016. | ||
*/ | ||
|
||
|
||
const domain = require('domain'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var keypress = require('keypress'); | ||
|
||
// make `process.stdin` begin emitting "keypress" events | ||
keypress(process.stdin); | ||
|
||
// listen for the "keypress" event | ||
process.stdin.on('keypress', function (ch, key) { | ||
console.log('got "keypress"', key); | ||
if (key && key.ctrl && key.name == 'c') { | ||
process.stdin.pause(); | ||
} | ||
}); | ||
|
||
//process.stdin.setRawMode(true); | ||
process.stdin.resume(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,4 @@ module.exports = { | |
} | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
>>> Suman start run indiv. @Tue May 03 2016 19:19:48 GMT-0700 (Pacific Daylight Time) >>> | ||
|
||
Beginning of run at 1462328388098 = [Tue May 03 2016 19:19:48 GMT-0700 (Pacific Daylight Time)] | ||
Command = ["C:\\Program Files\\nodejs\\node.exe","c:\\Users\\denman\\WebstormProjects\\suman-private\\test\\ava-test\\file1.js"] | ||
|
||
|
||
Test error: A | ||
stack: Error: 123 | ||
at c:\Users\denman\WebstormProjects\suman-private\test\ava-test\file1.js:13:23 | ||
at FSReqWrap.cb [as oncomplete] (fs.js:212:19) | ||
|
||
|
||
|
||
Test error: B | ||
stack: Error: 123 | ||
at null._onTimeout (c:\Users\denman\WebstormProjects\suman-private\test\ava-test\file1.js:22:23) | ||
at Timer.listOnTimeout (timers.js:92:15) | ||
|
||
|
||
|
||
Test error: C | ||
stack: Error: 456 | ||
at Immediate._onImmediate (c:\Users\denman\WebstormProjects\suman-private\test\ava-test\file1.js:31:23) | ||
at processImmediate [as _immediateCallback] (timers.js:383:17) | ||
|
||
|
||
|
||
Test error: D | ||
stack: Error: 789 | ||
at c:\Users\denman\WebstormProjects\suman-private\test\ava-test\file1.js:40:23 | ||
at doNTCallback0 (node.js:419:9) | ||
at process._tickDomainCallback (node.js:389:13) | ||
|
||
|
||
|
||
<<< Suman end run <<< | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Created by denman on 5/3/2016. | ||
*/ | ||
|
||
const suman = require('../../lib/index'); | ||
const Test = suman.init(module); | ||
|
||
Test.describe('Catches exceptions', {}, function(fs){ | ||
|
||
this.it('A', t => { | ||
return new Promise(function(resolve){ | ||
fs.exists('foo', function(){ | ||
throw new Error('123'); | ||
resolve(); // won't get reached, but here for clarity | ||
}); | ||
}); | ||
}); | ||
|
||
this.it('B', t => { | ||
return new Promise(function(resolve){ | ||
setTimeout(function(){ | ||
throw new Error('123'); | ||
resolve(); // won't be reached, but here for clarity | ||
}, 100); | ||
}); | ||
}); | ||
|
||
this.it('C', t => { | ||
return new Promise(function(resolve){ | ||
setImmediate(function(){ | ||
throw new Error('456'); | ||
resolve(); // won't be reached, but here for clarity | ||
}); | ||
}); | ||
}); | ||
|
||
this.it('D', t => { | ||
return new Promise(function(resolve){ | ||
process.nextTick(function(){ | ||
throw new Error('789'); | ||
resolve(); // won't be reached, but here for clarity | ||
}); | ||
}); | ||
}); | ||
}); |