jupyterhub / systemdspawner

Spawn JupyterHub single-user notebook servers with systemd
BSD 3-Clause "New" or "Revised" License
92 stars 45 forks source link

Fix unit-test for service_failed to work on systemd>229 #48

Closed RohitK89 closed 5 years ago

RohitK89 commented 5 years ago

The original test tries to create a failed service by passing it a uid that doesn't exist, which works as intended on systemd=229, but results in a service created in an inactive rather than failed state on systemd=239.

This commit changes the test and has it try to create a service with an invalid working dir instead of uid, and has been confirmed to work on both versions as the created service fails with an error of 200/CHDIR.