iotivity/iotivity-lite

Flaky tests

Opened this issue · 2 comments

Reset at 3. 11. 2023:

Unit tests:

plgd/device tests:

    getOwnerships_test.go:41: 
        	Error Trace:	/go/src/github.com/plgd-dev/device/client/core/getOwnerships_test.go:41
        	            				/go/src/github.com/plgd-dev/device/client/core/getOwnerships_test.go:81
        	Error:      	Not equal: 
        	            	expected: true
        	            	actual  : false
        	Test:       	TestGetOwnerships
    getDevice_test.go:78: 
        	Error Trace:	/go/src/github.com/plgd-dev/device/client/core/getDevice_test.go:78
        	            				/usr/local/go/src/runtime/asm_amd64.s:1594
        	Error:      	Received unexpected error:
        	            	(NotFound) no response from the device with ip 10.1.0.11
        	Test:       	TestClientGetDeviceParallel

plgd/hub tests:

coverage: 62.9% of statements in ./...
=== RUN   TestClientGetDeviceByIPWithIP4
--- FAIL: TestClientGetDeviceByIPWithIP4 (10.00s)
panic: (Internal) no response from the device d3cea882-9a26-4c35-404f-5086237a24a3 [recovered]
	panic: (Internal) no response from the device d3cea882-9a26-4c35-404f-5086237a24a3
5: [OC 2023-11-29T10:54:21.800334Z] ERROR: oc_swupdate.c:974 <oc_swupdate_dump>: swupdate: cannot dump data for device(0) to store: error(-2)
5: [OC 2023-11-29T10:54:22.006930Z] WARNING: oc_certs_validate.c:56 <validate_x509v1_fields>: certificate not yet active
5: /home/runner/work/iotivity-lite/iotivity-lite/security/unittest/obt_certstest.cpp:626: Failure
5: Value of: flags
5:   Actual: 512
5: Expected: 0
5: [OC 2023-11-29T10:54:22.007015Z] ERROR: oc_store.c:76 <oc_sec_dump_doxm>: cannot dump doxm to storage: error(-2)

512 flag means that certificate will be valid in the future.