Skip to content

Commit

Permalink
tests(share): just log SharesAvailable of light nodes to prevent fail…
Browse files Browse the repository at this point in the history
…s after the test are passed
  • Loading branch information
Wondertan committed Jun 24, 2022
1 parent a3eadff commit 6c32457
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions service/share/full_availability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func TestShareAvailable_OneFullNode(t *testing.T) {
lights[i] = net.LightNode()
go func(i int) {
err := lights[i].SharesAvailable(ctx, root)
require.NoError(t, err)
if err != nil {
t.Log("light errors:", err)
}
}(i)
}

Expand Down Expand Up @@ -135,13 +137,17 @@ func TestShareAvailable_ConnectedFullNodes(t *testing.T) {
lights1[i] = net.LightNode()
go func(i int) {
err := lights1[i].SharesAvailable(ctx, root)
require.NoError(t, err)
if err != nil {
t.Log("light1 errors:", err)
}
}(i)

lights2[i] = net.LightNode()
go func(i int) {
err := lights2[i].SharesAvailable(ctx, root)
require.NoError(t, err)
if err != nil {
t.Log("light2 errors:", err)
}
}(i)
}

Expand Down Expand Up @@ -226,13 +232,17 @@ func TestShareAvailable_DisconnectedFullNodes(t *testing.T) {
lights1[i] = net.LightNode()
go func(i int) {
err := lights1[i].SharesAvailable(ctx, root)
require.NoError(t, err)
if err != nil {
t.Log("light1 errors:", err)
}
}(i)

lights2[i] = net.LightNode()
go func(i int) {
err := lights2[i].SharesAvailable(ctx, root)
require.NoError(t, err)
if err != nil {
t.Log("light2 errors:", err)
}
}(i)
}

Expand Down

0 comments on commit 6c32457

Please sign in to comment.