fix: address M3 verifier findings on soak invariants and probe tests
This commit is contained in:
@@ -52,3 +52,22 @@ class TestErrorsClassified:
|
||||
rows = [_row(error="KeyError: 'oops'")]
|
||||
with pytest.raises(AssertionError, match="未分类"):
|
||||
inv_errors_classified(rows, _KNOWN)
|
||||
|
||||
|
||||
class TestRssAbsolute:
|
||||
def test_within_bound(self):
|
||||
from tools.soak.scoreboard import inv_rss_absolute
|
||||
|
||||
inv_rss_absolute([120.0, 180.0, 150.0], max_mb=500.0)
|
||||
|
||||
def test_peak_exceeds(self):
|
||||
from tools.soak.scoreboard import inv_rss_absolute
|
||||
|
||||
with pytest.raises(AssertionError, match="峰值"):
|
||||
inv_rss_absolute([120.0, 690.0, 200.0], max_mb=500.0) # verifier I1 实测形态
|
||||
|
||||
def test_empty_rejected(self):
|
||||
from tools.soak.scoreboard import inv_rss_absolute
|
||||
|
||||
with pytest.raises(AssertionError):
|
||||
inv_rss_absolute([], max_mb=500.0)
|
||||
|
||||
Reference in New Issue
Block a user