Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
github.com/ChainSafe/gossamer/dot,
github.com/ChainSafe/gossamer/dot/core,
github.com/ChainSafe/gossamer/dot/rpc/modules,
github.com/ChainSafe/gossamer/lib/babe,
github.com/ChainSafe/gossamer/lib/babe

Copy link
Copy Markdown
Contributor

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 😄

Copy link
Copy Markdown
Contributor Author

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

]
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 4 additions & 2 deletions dot/network/gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.
But seems like only potential way to find an optimum delay would be to run ci bunch of times.

@timwu20 timwu20 Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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)
Expand Down