senecajs / seneca-transport

Seneca micro-services message transport over TCP and HTTP.
MIT License
63 stars 45 forks source link

Created a test for issue #52 #59

Closed gkubisa closed 8 years ago

gkubisa commented 8 years ago

The test exposes the issue and it currently fails, because tx$ is not the same before and after the entity action (save$ in this case), when that action is executed on an entity which was serialized and de-serialized by seneca-transport.

The test uses a helper action, cmd:test2, to get tx$ after the entity action has been executed. However, the implicit entity action triggered by save$ (role:entity,cmd:save) also uses the wrong tx$. Ideally a test would be added to cover that action, too.