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

chore: upgrade OT core to v0.54.0 #637

Merged
merged 6 commits into from
Jun 30, 2022
Merged

chore: upgrade OT core to v0.54.0 #637

merged 6 commits into from
Jun 30, 2022

Conversation

andrzej-stencel
Copy link
Contributor

No description provided.

@github-actions github-actions bot added documentation Improvements or additions to documentation go labels Jun 29, 2022
@andrzej-stencel andrzej-stencel marked this pull request as ready for review June 29, 2022 13:06
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner June 29, 2022 13:06
Comment on lines +411 to +412
time.Sleep(10 * time.Millisecond)

Copy link
Contributor

Choose a reason for hiding this comment

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

😨

Added the `time.Sleep()` call to make sure the second event
is actually always sent as the second one.
@@ -408,6 +408,8 @@ func TestStorage(t *testing.T) {
host := storagetest.NewStorageHost(t, storageDir, "test")
assert.NoError(t, receiver.Start(ctx, host))

time.Sleep(10 * time.Millisecond)
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 reason behind this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to ensure that the second event actually comes in after the first event.

@@ -343,7 +343,7 @@ func TestNoStorage(t *testing.T) {
// Both events should be picked up by the receiver.
assert.Eventually(t, func() bool {
return assert.Equal(t, 2, logsSink.LogRecordCount())
}, time.Second, 100*time.Millisecond)
}, 100*time.Millisecond, 10*time.Millisecond)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we needed to use Millisecond here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could use time.Second too, but I just wanted the test to be quicker.

@andrzej-stencel andrzej-stencel merged commit afba02c into main Jun 30, 2022
@andrzej-stencel andrzej-stencel deleted the update-otc-v0.54.0 branch June 30, 2022 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants