mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
test: do not start two primary endpoints on same branch
This commit is contained in:
@@ -16,11 +16,13 @@ def test_neon_cli_basics(neon_env_builder: NeonEnvBuilder, port_distributor: Por
|
||||
endpoint_id="ep-basic-main", pg_port=pg_port, http_port=http_port
|
||||
)
|
||||
|
||||
env.neon_cli.create_branch(new_branch_name="migration_check")
|
||||
branch_name = "migration-check"
|
||||
|
||||
env.neon_cli.create_branch(new_branch_name=branch_name)
|
||||
pg_port = port_distributor.get_port()
|
||||
http_port = port_distributor.get_port()
|
||||
env.neon_cli.endpoint_start(
|
||||
endpoint_id="ep-migration_check", pg_port=pg_port, http_port=http_port
|
||||
f"ep-{branch_name}", pg_port, http_port, branch_name=branch_name
|
||||
)
|
||||
finally:
|
||||
env.neon_cli.stop()
|
||||
|
||||
Reference in New Issue
Block a user