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