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

Intermittent unit test: TestRequestWithBodyReplyEndToEndWithTLS #1428

Open
nguyer opened this issue Nov 29, 2023 · 0 comments
Open

Intermittent unit test: TestRequestWithBodyReplyEndToEndWithTLS #1428

nguyer opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nguyer
Copy link
Contributor

nguyer commented Nov 29, 2023

I have seen the unit test TestRequestWithBodyReplyEndToEndWithTLS intermittently fail in GitHub actions. For example: https://github.com/hyperledger/firefly/actions/runs/7035574807/job/19146264505?pr=1427

=== RUN   TestRequestWithBodyReplyEndToEndWithTLS
time="2023-11-29T16:32:40Z" level=error msg="Failed to invoke webhook: Put \"https://127.0.0.1:8443/myapi/my/sub/path%3Fescape_query?dynamic-query=dynamicqueryval&my-query=myqueryval\": dial tcp 127.0.0.1:8443: connect: connection refused" webhook=
    webhooks_test.go:577: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:577
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/callbacks.go:24
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:470
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:539
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:584
        	Error:      	Not equal: 
        	            	expected: "batch_pin"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,2 +1,2 @@
        	            	-(fftypes.FFEnum) (len=9) "batch_pin"
        	            	+(fftypes.FFEnum) ""
        	            	 
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:578: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:578
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/callbacks.go:24
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:470
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:539
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:584
        	Error:      	Not equal: 
        	            	expected: "myheaderval2"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-myheaderval2
        	            	+
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:579: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:579
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/callbacks.go:24
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:470
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:539
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:584
        	Error:      	Not equal: 
        	            	expected: "replyvalue"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-replyvalue
        	            	+
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:580: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:580
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/callbacks.go:24
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:470
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks.go:539
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:584
        	Error:      	Not equal: 
        	            	expected: 200
        	            	actual  : 502
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:587: PASS:	RegisterConnection(string,string)
    webhooks_test.go:577: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:577
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:587
        	Error:      	Not equal: 
        	            	expected: "batch_pin"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,2 +1,2 @@
        	            	-(fftypes.FFEnum) (len=9) "batch_pin"
        	            	+(fftypes.FFEnum) ""
        	            	 
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:578: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:578
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:587
        	Error:      	Not equal: 
        	            	expected: "myheaderval2"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-myheaderval2
        	            	+
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:579: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:579
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:587
        	Error:      	Not equal: 
        	            	expected: "replyvalue"
        	            	actual  : ""
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-replyvalue
        	            	+
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:580: 
        	Error Trace:	/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:580
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:584
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/value.go:368
        	            				/home/runner/work/firefly/firefly/internal/events/webhooks/webhooks_test.go:587
        	Error:      	Not equal: 
        	            	expected: 200
        	            	actual  : 502
        	Test:       	TestRequestWithBodyReplyEndToEndWithTLS
    webhooks_test.go:587: PASS:	DeliveryResponse(string,mock.argumentMatcher)
--- FAIL: TestRequestWithBodyReplyEndToEndWithTLS (0.35s)

logs_8540.zip

@nguyer nguyer added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant