Skip to content

Commit

Permalink
tests/connector: Switch to UUID for abstract name
Browse files Browse the repository at this point in the history
This is similar to 2833273, where we
used UUIDs for the dedicated abstract test. However, when running the
repeat100 tests, we also ran into collisions with the connector, so
let's actually switch the connector to use UUIDs as well to avoid this.

Signed-off-by: aszlig <[email protected]>
  • Loading branch information
aszlig committed Aug 8, 2023
1 parent bdeadce commit 799e5b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import tempfile
import unittest

from uuid import uuid4
from contextlib import contextmanager

CURDIR = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -144,8 +145,9 @@ def test_socket_activation_with_fdname(self):

@helper.abstract_sockets_only
def test_abstract_socket(self):
srule = {'direction': 'incoming', 'abstract': 'a%p'}
crule = {'direction': 'outgoing', 'abstract': 'a%p'}
basename = uuid4().hex
srule = {'direction': 'incoming', 'abstract': basename + '%p'}
crule = {'direction': 'outgoing', 'abstract': basename + '%p'}
with self.run_server([srule], '1.2.3.4', 929, sync=True):
self.assert_client([crule], '1.2.3.0', 929)

Expand Down

0 comments on commit 799e5b9

Please sign in to comment.