automata icon indicating copy to clipboard operation
automata copied to clipboard

Write Tests for AutomatonServer

Open upstarter opened this issue 5 years ago • 2 comments

We need tests for this as it is one of the trickier logics. Not great for beginners but good first issue for a senior dev.

upstarter avatar Feb 10 '20 16:02 upstarter

What's an "AutomatonServer"?

dimitarvp avatar Feb 10 '20 16:02 dimitarvp

It is the brains of the AutomatonSupervisor. It is a best practice to keep Supervisor modules thin and focused on just the supervision fault tolerance stuff. The brain keeps the state and manages the “workers” (for example in the case of a worker pool) — in this case being the user-defined nodes.

It is located in file https://github.com/upstarter/automata/blob/master/lib/automata/core/automaton_server.ex

On Mon, Feb 10, 2020 at 8:49 AM Dimitar Panayotov [email protected] wrote:

What's an "AutomatonServer"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/upstarter/automata/issues/8?email_source=notifications&email_token=AAAF5UWMZX2JN5ZK5WLLHQ3RCGASBA5CNFSM4KSRVUO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELJHRPI#issuecomment-584218813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5UW2U6GLQDJ6G7RLAY3RCGASBANCNFSM4KSRVUOQ .

upstarter avatar Feb 10 '20 17:02 upstarter