-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
00f3619
to
115e3f8
Compare
time.Sleep(10 * time.Millisecond) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😨
291ddf3
to
bbef4db
Compare
Removing: - fluentbitextension - prometheusexecreceiver
bbef4db
to
25794df
Compare
Added the `time.Sleep()` call to make sure the second event is actually always sent as the second one.
25794df
to
6e0ad5e
Compare
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.