Skip to content

Increment version for monitor releases#45039

Merged
rads-1996 merged 2 commits into
Azure:mainfrom
azure-sdk:increment-package-version-monitor-5843270
Feb 5, 2026
Merged

Increment version for monitor releases#45039
rads-1996 merged 2 commits into
Azure:mainfrom
azure-sdk:increment-package-version-monitor-5843270

Merge branch 'main' into increment-package-version-monitor-5843270

f134d9d
Select commit
Loading
Failed to load commit list.
Azure Pipelines / python - pullrequest succeeded Feb 5, 2026 in 8m 28s

Build #20260205.53 had test failures

Details

Tests

  • Failed: 1 (0.01%)
  • Passed: 13,703 (99.12%)
  • Other: 120 (0.87%)
  • Total: 13,824

Annotations

Check failure on line 1 in test_startup_delay_range

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - pullrequest

test_startup_delay_range

AssertionError: expected call not found.
Expected: uniform(5.0, 15.0)
  Actual: not called.
Raw output
self = <configuration.test_worker.TestConfigurationWorker testMethod=test_startup_delay_range>
mock_random = <MagicMock name='uniform' id='338374848'>

    @patch("random.uniform")
    def test_startup_delay_range(self, mock_random):
        """Test that startup delay is applied with correct range."""
        mock_random.return_value = 7.5  # Middle of range
    
        worker = _ConfigurationWorker(self.mock_configuration_manager)
    
        try:
            # Verify random.uniform was called with correct range
>           mock_random.assert_called_once_with(5.0, 15.0)

tests/configuration/test_worker.py:96: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/PyPy/3.11.13/x64/lib/pypy3.11/unittest/mock.py:951: in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <MagicMock name='uniform' id='338374848'>, args = (5.0, 15.0)
kwargs = {}, expected = 'uniform(5.0, 15.0)', actual = 'not called.'
error_message = 'expected call not found.\nExpected: uniform(5.0, 15.0)\n  Actual: not called.'

    def assert_called_with(self, /, *args, **kwargs):
        """assert that the last call was made with the specified arguments.
    
        Raises an AssertionError if the args and keyword args passed in are
        different to the last call to the mock."""
        if self.call_args is None:
            expected = self._format_mock_call_signature(args, kwargs)
            actual = 'not called.'
            error_message = ('expected call not found.\nExpected: %s\n  Actual: %s'
                    % (expected, actual))
>           raise AssertionError(error_message)
E           AssertionError: expected call not found.
E           Expected: uniform(5.0, 15.0)
E             Actual: not called.

/opt/hostedtoolcache/PyPy/3.11.13/x64/lib/pypy3.11/unittest/mock.py:930: AssertionError