-
Notifications
You must be signed in to change notification settings - Fork 145
fix(ci): fix dot/network unit tests #2572
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,10 +84,12 @@ func TestGossip(t *testing.T) { | |
| Digest: types.NewDigest(), | ||
| } | ||
|
|
||
| _, err = nodeA.host.send(addrInfoB.ID, "", announceMessage) | ||
| time.Sleep(10 * time.Second) | ||
|
|
||
| _, err = nodeA.host.send(addrInfoB.ID, "/gossamer/test/0/block-announces/1", announceMessage) | ||
| require.NoError(t, err) | ||
|
|
||
| time.Sleep(TestMessageTimeout) | ||
| time.Sleep(10 * time.Second) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. locally the test passes even with one second delay. I am guessing the delay requirement might be slightly different. 10s seems little high though.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These aren't unit tests. I'll create an issue if there already isn't one in the #1472 epic to address this package. A lot of the tests in this package are integration tests and should run in a separate workflow. But we should also write new unit tests for the package if we were to do that. I think running them in parallel with the unit test suite isn't helping when running on github runners. |
||
|
|
||
| hash, err := announceMessage.Hash() | ||
| require.NoError(t, err) | ||
|
|
||
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.
Is this necessary? 🤔 A bit OOS too. But sure, why not as well 😄
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.
😂 didn't mean to do this. I'll remove it