Add failing test for actor initial route signalling

This commit is contained in:
Tony Garnock-Jones 2014-08-30 13:19:04 -07:00
parent 9fdf90db68
commit 18c4b184e5
1 changed files with 17 additions and 0 deletions

View File

@ -70,3 +70,20 @@ describe("nonempty initial routes", function () {
}, [Minimart.updateRoutes([pub(["A", __]).label(1)])]);
});
});
describe("actor with nonempty initial routes", function () {
it("shouldn't see initial empty conversational context", function () {
checkTrace(function (trace) {
World.spawn({ handleEvent: function (e) {
World.spawn(new Actor(function () {
Actor.observeAdvertisers(
function () { return ["A", __] },
{ presence: "isPresent" },
function () {
trace(["isPresent", this.isPresent]);
});
}));
}}, [pub(["A", __])]);
}, [["isPresent", true]]);
});
});