Project

General

Profile

Actions

Bug #17199

closed

[tests] Avoid random port conflicts when bringing up integration test services

Added by Tom Clegg about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Start date:
12/08/2020
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-
Release relationship:
Auto

Description

Occasionally this code in source:sdk/python/tests/run_test_server.py chooses the same port twice, which causes the test suite to fail:

def setup_config():
    rails_api_port = find_available_port()
    controller_port = find_available_port()
    controller_external_port = find_available_port()
    websocket_port = find_available_port()
    websocket_external_port = find_available_port()
    workbench1_port = find_available_port()
    workbench1_external_port = find_available_port()
    # ...

Subtasks 1 (0 open1 closed)

Task #17201: Review 17199-available-port-raceResolvedWard Vandewege12/08/2020

Actions
Actions

Also available in: Atom PDF