]> git.cworth.org Git - lmno-server/commit
test: Keep player event streams open
authorCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 13:50:00 +0000 (06:50 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 13:54:35 +0000 (06:54 -0700)
commit83e03c009ec7e38e8bc7e6e089ebfd94a96dbe6a
treea952d610934216c30f18cf5d55ce66363f4e513c
parent60c56d50f8ada21f0dc9eea0bf4485cc7fcf1375
test: Keep player event streams open

We're about to fix the server to properly notice when a player drops
their connection and then consider them inactive. To prepare for this
in the test suite, here we put the curl calls getting the event stream
into the background so they stick around, and finally kill them at the
end of the test suite.

We use an ugly `eval` based approach so that emapthy_player_activate
with a name like "alice" sets both an $alice_cookie and an $alice_pid
variable. (Sure would be nice if we had real data structures. Oh
well.)
test