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

test: fix mirror cache handling #2155

Merged
merged 1 commit into from
Jun 8, 2021
Merged

Conversation

tonistiigi
Copy link
Member

Fixes for the mirror handling in tests. When TEST_KEEP_CACHE=1 is set no requests should be made to external registries between invocations.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@tonistiigi tonistiigi mentioned this pull request Jun 8, 2021
4 tasks
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@AkihiroSuda AkihiroSuda merged commit 67953d6 into moby:master Jun 8, 2021
@@ -216,6 +217,13 @@ func copyImagesLocal(t *testing.T, host string, images map[string]string) error
return err
}
}

// already exists check
Copy link
Member Author

Choose a reason for hiding this comment

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

fyi, this shouldn't affect rate-limiting as HEAD requests are free, but no reason to recheck if tag has been updated in here

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

Successfully merging this pull request may close these issues.

2 participants