Add retry for flaky tests in CI (#4755)
This commit is contained in:
@@ -5,7 +5,7 @@ import unittest
|
||||
import torch
|
||||
|
||||
import sglang as sgl
|
||||
from sglang.test.test_utils import DEFAULT_SMALL_MODEL_NAME_FOR_TEST
|
||||
from sglang.test.test_utils import DEFAULT_SMALL_MODEL_NAME_FOR_TEST, CustomTestCase
|
||||
|
||||
|
||||
def test_update_weights_from_tensor(tp_size):
|
||||
@@ -40,7 +40,7 @@ def test_update_weights_from_tensor(tp_size):
|
||||
), f"Memory leak detected: {memory_after - memory_before} bytes"
|
||||
|
||||
|
||||
class TestUpdateWeightsFromTensor(unittest.TestCase):
|
||||
class TestUpdateWeightsFromTensor(CustomTestCase):
|
||||
def test_update_weights_from_tensor(self):
|
||||
tp_sizes = [1, 2]
|
||||
for tp_size in tp_sizes:
|
||||
|
||||
Reference in New Issue
Block a user