mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 17:34:51 +08:00
Exclude test profiling info endpoint (#7030)
* Skip test_profiling_info_endpoint when pytest running locally * Fixed formatting. * Fixed the reason for skipping the test based on pr comments
This commit is contained in:
@@ -2,6 +2,7 @@ import os
|
||||
import json
|
||||
import grpc
|
||||
import psutil
|
||||
import pytest
|
||||
import requests
|
||||
import time
|
||||
|
||||
@@ -242,6 +243,9 @@ def test_raylet_info_endpoint(shutdown_only):
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("TRAVIS") is None,
|
||||
reason="This test requires password-less sudo due to py-spy requirement.")
|
||||
def test_profiling_info_endpoint(shutdown_only):
|
||||
ray.init(num_cpus=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user