Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaroomy committed Dec 14, 2019
1 parent 095adca commit ec85e57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Libplanet.Tests/Net/SwarmTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Libplanet.Crypto;
using Libplanet.Net;
using Libplanet.Net.Messages;
using Libplanet.Net.Protocols;
using Libplanet.Store;
using Libplanet.Tests.Blockchain;
using Libplanet.Tests.Common.Action;
Expand Down Expand Up @@ -334,7 +335,7 @@ public async Task BootstrapException()

try
{
await Assert.ThrowsAsync<SwarmException>(
await Assert.ThrowsAsync<PeerDiscoveryException>(
() => swarmB.BootstrapAsync(new[] { swarmA.AsPeer }, 3000, 3000));

await StartAsync(swarmA);
Expand Down Expand Up @@ -530,7 +531,7 @@ void GameHandler(object sender, DifferentProtocolVersionEventArgs e)
{
await StartAsync(b);

await Assert.ThrowsAsync<SwarmException>(() => BootstrapAsync(a, b.AsPeer));
await Assert.ThrowsAsync<PeerDiscoveryException>(() => BootstrapAsync(a, b.AsPeer));

Assert.True(isCalled);
}
Expand Down

0 comments on commit ec85e57

Please sign in to comment.