feat: extend stall timeout and remove sample cap
This commit is contained in:
1 parent
27f9f4add8
commit
eb6ea70e19
9 files changed
+105
-45
No files matched your search
@@ -475,6 +475,20 @@ class GenericSystemXmlSimulationTests(unittest.TestCase):
|
||||
"port_a",
|
||||
)
|
||||
|
||||
def test_raw_system_xml_serializes_more_than_legacy_sample_limit(self) -> None:
|
||||
project = chain_project()
|
||||
project.simulation.step = 0.0000005
|
||||
xml = build_reactflow_system_xml(project)
|
||||
|
||||
response = asyncio.run(simulate_system_xml(xml_request(xml)))
|
||||
round_tripped = json.loads(json.dumps(response))
|
||||
|
||||
self.assertTrue(round_tripped["success"])
|
||||
self.assertEqual(round_tripped["diagnostics"]["sampleCount"], 20001)
|
||||
self.assertEqual(len(round_tripped["series"]["time"]), 20001)
|
||||
self.assertEqual(round_tripped["series"]["time"][0], 0.0)
|
||||
self.assertEqual(round_tripped["series"]["time"][-1], 0.01)
|
||||
|
||||
def test_streaming_endpoint_events_have_monotonic_progress_and_result(self) -> None:
|
||||
project = chain_project()
|
||||
xml = build_reactflow_system_xml(project)
|
||||
|
||||
Reference in new issue
Block a user