Improve new integration tests #84

Closed
opened 2025-12-28 18:00:06 +00:00 by sami · 0 comments
Owner

Originally created by @tatiana-nspcc on GitHub (Jun 3, 2024).

Originally assigned to: @tatiana-nspcc on GitHub.

Sometimes coverage tests failed with an error:

=== RUN   TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head
    integration_test.go:2200: 
        	Error Trace:	/home/runner/work/neofs-rest-gw/neofs-rest-gw/cmd/neofs-rest-gw/integration_test.go:2200
        	Error:      	Not equal: 
        	            	expected: "Mon, 03 Jun 2024 12:52:17 GMT"
        	            	actual  : "Mon, 03 Jun 2024 12:52:18 GMT"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-Mon, 03 Jun 2024 12:52:17 GMT
        	            	+Mon, 03 Jun 2024 12:52:18 GMT
        	Test:       	TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head
=== RUN   TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head_multi-segment_path_attribute
    integration_test.go:2238: 
        	Error Trace:	/home/runner/work/neofs-rest-gw/neofs-rest-gw/cmd/neofs-rest-gw/integration_test.go:2238
        	Error:      	Not equal: 
        	            	expected: "Mon, 03 Jun 2024 12:52:18 GMT"
        	            	actual  : "Mon, 03 Jun 2024 12:52:17 GMT"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-Mon, 03 Jun 2024 12:52:18 GMT
        	            	+Mon, 03 Jun 2024 12:52:17 GMT
        	Test:       	TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head_multi-segment_path_attribute

And I need to rerun this job.

Describe the solution you'd like

Some improvements are needed in this test to calculate the timestamp.

Additional context

v0.9.0

Originally created by @tatiana-nspcc on GitHub (Jun 3, 2024). Originally assigned to: @tatiana-nspcc on GitHub. ## Is your feature request related to a problem? Please describe. Sometimes coverage tests failed with an error: ``` === RUN TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head integration_test.go:2200: Error Trace: /home/runner/work/neofs-rest-gw/neofs-rest-gw/cmd/neofs-rest-gw/integration_test.go:2200 Error: Not equal: expected: "Mon, 03 Jun 2024 12:52:17 GMT" actual : "Mon, 03 Jun 2024 12:52:18 GMT" Diff: --- Expected +++ Actual @@ -1 +1 @@ -Mon, 03 Jun 2024 12:52:17 GMT +Mon, 03 Jun 2024 12:52:18 GMT Test: TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head === RUN TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head_multi-segment_path_attribute integration_test.go:2238: Error Trace: /home/runner/work/neofs-rest-gw/neofs-rest-gw/cmd/neofs-rest-gw/integration_test.go:2238 Error: Not equal: expected: "Mon, 03 Jun 2024 12:52:18 GMT" actual : "Mon, 03 Jun 2024 12:52:17 GMT" Diff: --- Expected +++ Actual @@ -1 +1 @@ -Mon, 03 Jun 2024 12:52:18 GMT +Mon, 03 Jun 2024 12:52:17 GMT Test: TestIntegration/nspccdev/neofs-aio:0.41.0/rest_new_head_by_attribute/head_multi-segment_path_attribute ``` And I need to rerun this job. <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when ... --> ## Describe the solution you'd like <!-- A clear and concise description of what you want to happen. --> Some improvements are needed in this test to calculate the timestamp. ## Additional context <!-- Add any other context or screenshots about the feature request here. --> v0.9.0
sami 2025-12-28 18:00:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-rest-gw#84
No description provided.