Fix UT test data due to timestamp break. #115
Closed
Azure Pipelines / sonic-net.sonic-host-services
failed
Apr 19, 2024 in 4m 53s
Build #20240419.1 had test failures
Details
- Failed: 1 (0.78%)
- Passed: 127 (99.22%)
- Other: 0 (0.00%)
- Total: 128
Annotations
Check failure on line 304 in Build log
azure-pipelines / sonic-net.sonic-host-services
Build log #L304
Bash exited with code '1'.
Check failure on line 19 in Build log
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
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
Loading