Skip to content

Commit 5070519

Browse files
committed
Fix pytest for ha setup
1 parent da14190 commit 5070519

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/local/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
import pytest
54
import os
5+
import pytest
6+
from scapy.all import conf
67

78
from config import *
89
from dp_grpc_client import DpGrpcClient
@@ -155,6 +156,7 @@ def prepare_ifaces(request, dp_service, grpc_client):
155156
@pytest.fixture(scope="function")
156157
def prepare_ifaces_b(dp_service_b, grpc_client_b):
157158
print("--- B Interfaces init ----")
159+
conf.ifaces.reload() # Otherwise scapy remembers the old TAPs from previous test
158160
dp_service_b.init_ifaces(grpc_client_b)
159161
print("--------------------------")
160162

0 commit comments

Comments
 (0)