fix: Update configure_csi_collection to use MockCSIGenerator from testing module

The configure_csi_collection method was still referencing the old
mock_data_generator dict directly instead of delegating to the
MockCSIGenerator instance from the testing module. This completes the
ADR-011 mock isolation by ensuring all mock CSI configuration flows
through v1/src/testing/mock_csi_generator.py.

https://claude.ai/code/session_01Ki7pvEZtJDvqJkmyn6B714
This commit is contained in:
Claude
2026-02-28 06:21:53 +00:00
parent 4b2e7bfecf
commit 5210ef4baa

View File

@@ -248,13 +248,9 @@ class RouterInterface:
"""
try:
if self.mock_mode:
# Update mock generator parameters
if 'sampling_rate' in config:
self.mock_data_generator['frequency'] = config['sampling_rate'] / 1000.0
if 'noise_level' in config:
self.mock_data_generator['noise_level'] = config['noise_level']
if self._mock_csi_generator is None:
self._initialize_mock_generator()
self._mock_csi_generator.configure(config)
self.logger.info(f"Mock CSI collection configured for router {self.router_id}")
return True