Jaymon / testdata

Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
MIT License
10 stars 0 forks source link

Prom's test_no_connection method failed intermittently #75

Open Jaymon opened 3 years ago

Jaymon commented 3 years ago

This line:

postgresql = testdata.stop_service("postgresql", ignore_failure=False)

and I had to add a time.sleep(1) to make the tests pass reliably. So Systemd isn't making sure the services are stopped before returning, so I'll want to add more tests and stuff to make sure this is working as expected.