Skip to content

Investigate and fix why test started failing after move to windows server 2022 #2389

@mstoykov

Description

@mstoykov

After windows-latest started being windows server 2022 a particular test of ours started failing

--- FAIL: TestErrorCodes (2.07s)
    --- FAIL: TestErrorCodes/Connection_refused_redirect (2.00s)
        request_test.go:2059: 
            	Error Trace:	request_test.go:2059
            	Error:      	Received unexpected error:
            	            	Error: wrong error: 'dial: i/o timeout' at <eval>:6:73(49)
            	Test:       	TestErrorCodes/Connection_refused_redirect

Up until few days ago and with the previous version it was fine

We have at least one other case where we have a similar problem - we expect "connection refused" but we get "timeout". This seem to differ to as the one linked is about request timeout while we are getting a dial timeout.

This very likely is due to some changed network configuration, and maybe it should be just skipped on windows?

The current proposed fix is to pin to the old version, but this needs to be investigated and hopefully fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    evaluation neededproposal needs to be validated or tested before fully implementing it in k6maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions