Skip to content
Permalink
Browse files

Merge pull request #431 from moreal/fix-swarm-test-preload-fails

Fix swarm test preload fails
  • Loading branch information...
longfin committed Aug 14, 2019
2 parents af529f4 + 902625b commit b41da2994a4644bbc0baf9fc6f97bf7527d5c0ff
Showing with 3 additions and 1 deletion.
  1. +2 −1 Libplanet.Tests/Net/SwarmTest.cs
  2. +1 −0 Libplanet/Net/Swarm.cs
@@ -1073,7 +1073,8 @@ public async Task Preload()
ExecutedBlockCount = i + 1,
})).ToArray();

Assert.Equal(expectedStates, actualStates);
Assert.True(expectedStates.ToImmutableHashSet()
.SetEquals(actualStates.ToImmutableHashSet()));
}
finally
{
@@ -558,6 +558,7 @@ public void BroadcastTxs(IEnumerable<Transaction<T>> txs)
);
}

// FIXME: It is not guaranteed that states will be reported in order. see issue #436, #430
internal async Task PreloadAsync(
bool render,
IProgress<PreloadState> progress = null,

0 comments on commit b41da29

Please sign in to comment.
You can’t perform that action at this time.