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

Watermill tests fail on windows #443

Open
HolyKingCrusader opened this issue May 25, 2024 · 0 comments
Open

Watermill tests fail on windows #443

HolyKingCrusader opened this issue May 25, 2024 · 0 comments

Comments

@HolyKingCrusader
Copy link

I tried to run tests on windows and they fail without an apparent cause, TestRequestReply_fn_cancellation seems to crash randomly. ReplyTimeoutError.Duration is 0 when they fail, and ~495.9µs when they succeed.

go version go1.22.3 windows/amd64

Test output:

...
--- PASS: TestNewPubSubBackend_missing_values (0.00s)
    --- PASS: TestNewPubSubBackend_missing_values/invalid_config (0.00s)
    --- PASS: TestNewPubSubBackend_missing_values/missing_marshaler (0.00s)
[watermill] 2024/05/25 22:37:15.123446 command_processor.go:318: 	level=DEBUG msg="Handling command" command_handler_name=test_handler_2 message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 received_command_type=requestreply_test.TestCommand2 topic=commands 
[watermill] 2024/05/25 22:37:15.123941 backend_pubsub.go:218: 	level=DEBUG msg="Sending request reply" 
[watermill] 2024/05/25 22:37:15.123941 backend_pubsub.go:218: 	level=DEBUG msg="Sending request reply" 
FAIL
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:145: 	level=INFO  msg="No subscribers to send message" message_uuid=1 pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=reply 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:145: 	level=INFO  msg="No subscribers to send message" message_uuid=1 pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=reply 
[watermill] 2024/05/25 22:37:15.123941 command_processor.go:349: 	level=DEBUG msg="Error when handling command, nacking" command_handler_name=test_handler_1 err="error 1 27abb9cb-1f39-49c4-9e2f-07d36198b9a0" topic=commands 
[watermill] 2024/05/25 22:37:15.123941 command_processor.go:349: 	level=DEBUG msg="Error when handling command, nacking" command_handler_name=test_handler_2 err="error 2 cb92e4ac-bc7e-4178-9d4f-4dfada8bf6a5" topic=commands 
[watermill] 2024/05/25 22:37:15.123941 router.go:777: 	level=ERROR msg="Handler returned error" err="error 1 27abb9cb-1f39-49c4-9e2f-07d36198b9a0" message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d 
[watermill] 2024/05/25 22:37:15.123941 router.go:777: 	level=ERROR msg="Handler returned error" err="error 2 cb92e4ac-bc7e-4178-9d4f-4dfada8bf6a5" message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:377: 	level=TRACE msg="Nack received, resending message" message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:377: 	level=TRACE msg="Nack received, resending message" message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:357: 	level=TRACE msg="Sending msg to subscriber" message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:357: 	level=TRACE msg="Sending msg to subscriber" message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:366: 	level=TRACE msg="Sent message to subscriber" message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 pubsub.go:366: 	level=TRACE msg="Sent message to subscriber" message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 pubsub_uuid=RckC8zS9Hpud4ep9ZJGPqT topic=commands 
[watermill] 2024/05/25 22:37:15.123941 router.go:773: 	level=TRACE msg="Received message" message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 
[watermill] 2024/05/25 22:37:15.123941 router.go:773: 	level=TRACE msg="Received message" message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d 
[watermill] 2024/05/25 22:37:15.123941 command_processor.go:318: 	level=DEBUG msg="Handling command" command_handler_name=test_handler_2 message_uuid=23ef9ffc-a2ab-424f-a6c9-f270647891d4 received_command_type=requestreply_test.TestCommand2 topic=commands 
[watermill] 2024/05/25 22:37:15.123941 command_processor.go:318: 	level=DEBUG msg="Handling command" command_handler_name=test_handler_1 message_uuid=9e996d98-64e2-4e4b-b091-82959ec8704d received_command_type=requestreply_test.TestCommand topic=commands 
[watermill] 2024/05/25 22:37:15.123941 backend_pubsub.go:218: 	level=DEBUG msg="Sending request reply" 
[watermill] 2024/05/25 22:37:15.123941 backend_pubsub.go:218: 	level=DEBUG msg="Sending request reply" 
FAIL	github.com/ThreeDotsLabs/watermill/components/requestreply	0.242s
FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant