Skip to content

[graceful] Flaky unit tests #1291

@brandon-welsch

Description

@brandon-welsch
Execute the tests in module ./graceful
00:12
--- FAIL: TestService_Shutdown_WithRequest (0.63s)
00:12
    --- FAIL: TestService_Shutdown_WithRequest/signal_interrupt_expect_service_to_stop (0.23s)
00:12
        service_test.go:95: 
00:12
            	Error Trace:	/home/rof/src/github.com/Scalingo/go-utils/graceful/service_test.go:95
00:12
            	Error:      	Received unexpected error:
00:12
            	            	Get "http://localhost:9000/?sleep=200": dial tcp [::1]:9000: connect: connection refused
00:12
            	Test:       	TestService_Shutdown_WithRequest/signal_interrupt_expect_service_to_stop
00:12
        service_test.go:464: 
00:12
            	Error Trace:	/home/rof/src/github.com/Scalingo/go-utils/graceful/service_test.go:495
00:12
            	            				/home/rof/src/github.com/Scalingo/go-utils/graceful/service_test.go:464
00:12
            	            				/home/rof/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/runtime/asm_amd64.s:1700
00:12
            	Error:      	Received unexpected error:
00:12
            	            	os: process already finished
00:12
            	Test:       	TestService_Shutdown_WithRequest/signal_interrupt_expect_service_to_stop
00:12
            	Messages:   	process 49631 is dead after 100ms
00:12
FAIL
00:12
FAIL	github.com/Scalingo/go-utils/graceful	8.635s
00:12
FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    ISTgoPull requests that update Go codelow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions