commit | f31b3436eb409d2e8a5afb54e0df114fe2b0adb7 | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@openstack.org> | Tue Mar 11 15:35:00 2014 -0700 |
committer | James E. Blair <jeblair@openstack.org> | Tue Mar 11 15:35:00 2014 -0700 |
tree | 5f2ec0e400a989c78d9f7bae684dd3110fc78515 | |
parent | 5e79b4686ed99ce1834b390f6c4149ddf84c71f9 [diff] |
Ensure there's always an http server object It's possible for a test to complete before python gets around to actually starting the webapp run thread. Make sure that the object referenced in the stop method is always instantiated to avoid "AttributeError: 'WebApp' object has no attribute 'server'" errors. Also, mark the webapp thread as daemon on general principle. Change-Id: I9b4c0c20a98d5429c299748178e31baf8b6912d9