Commit fe7da8f9 authored by Miguel Catalan's avatar Miguel Catalan
Browse files

test qod is working as expected

parent 09e349c6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ def notification_server():
    Binds to 0.0.0.0:40000 so the callback URL is http://localhost:40000/callback
    matching existing examples in tests.
    """
    host, port = "0.0.0.0", 40000
    host, port = "192.168.40.50", 40000
    received: List[dict] = []
    handler = _make_handler(received)
    httpd = _ThreadingHTTPServer((host, port), handler)
@@ -172,6 +172,8 @@ def test_qod_create_get_delete_with_notifications(oran_client: BaseOranClient, n
    # Delete policy
    oran_client.delete_qod_session(policy_id)

    time.sleep(15)

    # Expect an additional callback (e.g., deletion)
    assert _wait_for_callbacks(
        notification_server["received"], 2, timeout=10, start_len=start_len