Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UT test data due to timestamp break. #115

Closed
wants to merge 1 commit into from

Fix UT test data due to timestamp break.

a85b36a
Select commit
Loading
Failed to load commit list.
Closed

Fix UT test data due to timestamp break. #115

Fix UT test data due to timestamp break.
a85b36a
Select commit
Loading
Failed to load commit list.
Azure Pipelines / sonic-net.sonic-host-services failed Apr 19, 2024 in 4m 53s

Build #20240419.1 had test failures

Details

Tests

  • Failed: 1 (0.78%)
  • Passed: 127 (99.22%)
  • Other: 0 (0.00%)
  • Total: 128

Annotations

Check failure on line 304 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sonic-net.sonic-host-services

Build log #L304

Bash exited with code '1'.

Check failure on line 19 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sonic-net.sonic-host-services

Build log #L19

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 1 in test_update_processstats_command

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sonic-net.sonic-host-services

test_update_processstats_command

NameError: name 'datetime' is not defined
Raw output
self = <s.tests.procdockerstatsd_test.TestProcDockerStatsDaemon object at 0x7ff73788b040>

    def test_update_processstats_command(self):
        pdstatsd = procdockerstatsd.ProcDockerStats(procdockerstatsd.SYSLOG_IDENTIFIER)
>       current_time = datetime.now()
E       NameError: name 'datetime' is not defined

tests/procdockerstatsd_test.py:112: NameError