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

Add logging and sleep to tests #1464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joeybrown-sf
Copy link
Contributor

Summary

This change adds a thread sleep at a spot in our unit tests were we identified some flappiness. This change will help ensure our time-sensitive tests fail less often.


Context

Here's an example of failing tests this PR addresses.

@joeybrown-sf joeybrown-sf requested a review from a team as a code owner February 13, 2025 16:16
@joeybrown-sf joeybrown-sf changed the title Release/logging to tests Add logging and sleep to tests Feb 13, 2025
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
@joeybrown-sf joeybrown-sf force-pushed the release/logging-to-tests branch from 1a56dae to 3a09c6d Compare February 13, 2025 16:17

if err != nil {
list, _ := h.DockerCli(t).ImageList(context.TODO(), image.ListOptions{})
fmt.Println("Error encountered running ImageInspectWithRaw. imageName: ", imageName)
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the thought behind fmt here and t.Log below?

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