Skip to content

TestResumableRequestHeaderTooMuchFailures: prepare for Go 1.14 changes#40470

Merged
tiborvass merged 1 commit intomoby:masterfrom
thaJeztah:loosen_error_check_assert
Feb 10, 2020
Merged

TestResumableRequestHeaderTooMuchFailures: prepare for Go 1.14 changes#40470
tiborvass merged 1 commit intomoby:masterfrom
thaJeztah:loosen_error_check_assert

Conversation

@thaJeztah
Copy link
Member

fixes #40434
relates to #40353

Go 1.14 adds quotes around the invalid scheme in the error returned (See golang/go@64cfe9f and golang/go#29261)

Go 1.13:

Get I%27m%20not%20an%20url: unsupported protocol scheme ""

Go 1.14:

Get "I%27m%20not%20an%20url": unsupported protocol scheme ""

This patch updates the test to detect both versions of the error

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Go 1.14 adds quotes around the invalid scheme in the error returned in
golang/go@64cfe9f

Go 1.13:

    Get I%27m%20not%20an%20url: unsupported protocol scheme ""

Go 1.14:

    Get "I%27m%20not%20an%20url": unsupported protocol scheme ""

This patch updates the test to detect both versions of the error

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the loosen_error_check_assert branch from cf1b545 to 6acfc42 Compare February 10, 2020 18:03
Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiborvass tiborvass merged commit 266d744 into moby:master Feb 10, 2020
@thaJeztah thaJeztah deleted the loosen_error_check_assert branch February 10, 2020 22:42
@thaJeztah thaJeztah added this to the 20.03.0 milestone Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

registry/resumable: TestResumableRequestHeaderTooMuchFailures fails with Go 1.14 beta1

3 participants