Wait before performing integraiton test migration
The wait is on the wrong side of the postgres starting command
@@ -534,10 +534,13 @@ class World:
print("Starting postgres in exit namespace")
exec_or_exit("sudo ip netns exec {} sudo -u {} {} -D {} -c config_file={}".format(EXIT_NAMESPACE, POSTGRES_USER, POSTGRES_BIN, POSTGRES_DATABASE, POSTGRES_CONFIG), False)
+
+
+ time.sleep(30)
+
print("Perform initial database migrations")
exec_or_exit('sudo ip netns exec {} diesel migration run --database-url="postgres://postgres@localhost/test" --migration-dir=../exit_db/migrations'.format(EXIT_NAMESPACE))
- time.sleep(30)
print("starting babel")
