Skip to content

Share container images between TestRestartMonitor and TestRestartMonitorWithOnFailurePolicy#6889

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
kzys:pull-restart-test
May 4, 2022
Merged

Share container images between TestRestartMonitor and TestRestartMonitorWithOnFailurePolicy#6889
dmcgowan merged 1 commit intocontainerd:mainfrom
kzys:pull-restart-test

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented May 3, 2022

These tests are launching containerd and pulling busybox there, while
other tests are using busybox from TestMain().

This commit shares busybox at least between TestRestartMonitor and
TestRestartMonitorWithOnFailurePolicy to reduce the chance of
throttling from ghcr.io.

Signed-off-by: Kazuyoshi Kato [email protected]

@kzys kzys force-pushed the pull-restart-test branch from 4630de8 to 5827ede Compare May 3, 2022 18:10
t.Fatal(err)
}

t.Run("Success", func(t *testing.T) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
t.Run("Success", func(t *testing.T) {
t.Run("Always", func(t *testing.T) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Addressed in the last revision.

Comment thread integration/client/restart_monitor_test.go
…ailurePolicy

These tests are launching containerd and pulling busybox there, while
other tests are using busybox from TestMain().

This commit shares busybox at least between TestRestartMonitor and
TestRestartMonitorWithOnFailurePolicy to reduce the chance of
throttling from ghcr.io.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys force-pushed the pull-restart-test branch from 5827ede to 7a83451 Compare May 4, 2022 16:50
Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan dmcgowan merged commit 8854688 into containerd:main May 4, 2022
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.

4 participants