add toolchain targets; better names for logging
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
log.console('hello')
|
||||
var count = 0
|
||||
function loop()
|
||||
{
|
||||
@@ -1,6 +0,0 @@
|
||||
return {
|
||||
test_delay: function() {
|
||||
// Spawns the delay actor which counts to 60 and stops
|
||||
$_.start(e => {}, "tests/delay_actor")
|
||||
}
|
||||
}
|
||||
14
tests/kill.ce
Normal file
14
tests/kill.ce
Normal file
@@ -0,0 +1,14 @@
|
||||
$_.start(e => {
|
||||
log.console(`got message from hanger: ${e.type}`)
|
||||
if (e.type == 'greet')
|
||||
$_.delay(_ => {
|
||||
log.console(`sending stop message to hanger`)
|
||||
$_.stop(e.actor)
|
||||
}, 1)
|
||||
|
||||
if (e.type == 'disrupt') {
|
||||
log.console(`underling successfully killed.`)
|
||||
send($_.parent, { type: "test_result", passed: true })
|
||||
$_.stop()
|
||||
}
|
||||
}, 'tests/hang_actor')
|
||||
@@ -1,17 +0,0 @@
|
||||
return {
|
||||
test_kill: function() {
|
||||
$_.start(e => {
|
||||
log.console(`got message from hanger: ${e.type}`)
|
||||
if (e.type == 'greet')
|
||||
$_.delay(_ => {
|
||||
log.console(`sending stop message to hanger`)
|
||||
$_.stop(e.actor)
|
||||
}, 1)
|
||||
|
||||
if (e.type == 'disrupt') {
|
||||
log.console(`underling successfully killed.`)
|
||||
// $_.stop() // Removed for module test
|
||||
}
|
||||
}, 'tests/hang_actor')
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1 @@
|
||||
return {
|
||||
test_reply: function() {
|
||||
$_.start(e => {}, "tests/reply_actor")
|
||||
}
|
||||
}
|
||||
$_.start(e => {}, "tests/reply_actor")
|
||||
|
||||
Reference in New Issue
Block a user