Skip to content

testutil: don't import "opts" package#42757

Merged
tianon merged 1 commit intomoby:masterfrom
thaJeztah:testutil_no_ops
Aug 20, 2021
Merged

testutil: don't import "opts" package#42757
tianon merged 1 commit intomoby:masterfrom
thaJeztah:testutil_no_ops

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

It was only used for two consts, which are unlikely to change, but the
"opts" package currently also imports libnetwork/ipamutils, which has
an init() function that does some heavy lifting, and not needed for
this utility's purpose.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

It was only used for two consts, which are unlikely to change, but the
"opts" package currently also imports libnetwork/ipamutils, which has
an `init()` function that does some heavy lifting, and not needed for
this utility's purpose.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

imports libnetwork/ipamutils, which has an init() function that does some heavy lifting

FWIW; I recalled I had a patch for that in #42509, but it has other changes as well, perhaps I'll extract the sync.Once bit separately if that would make it a less risky change

@tianon tianon merged commit 41568df into moby:master Aug 20, 2021
@thaJeztah thaJeztah deleted the testutil_no_ops branch August 20, 2021 16:45
@thaJeztah thaJeztah added this to the 21.xx milestone Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants