Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
superboyiii committed Mar 5, 2021
1 parent 597d29c commit 1debdea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Neo.Network.RPC.Tests/UT_TransactionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ await txManager
Assert.AreEqual(100, tx.SystemFee);

// duplicate sign should not add new witness
await txManager.AddSignature(keyPair1).SignAsync();
Assert.AreEqual(1, txManager.Tx.Witnesses.Length);
await ThrowsAsync<Exception>(async () => await txManager.AddSignature(keyPair1).SignAsync());
Assert.AreEqual(null, txManager.Tx.Witnesses);

// throw exception when the KeyPair is wrong
await ThrowsAsync<Exception>(async () => await txManager.AddSignature(keyPair2).SignAsync());
Expand Down

0 comments on commit 1debdea

Please sign in to comment.