Skip to content

Commit

Permalink
test: Remove obsolete TransactionBuilder test
Browse files Browse the repository at this point in the history
We no longer pass Sprout parameters into the transaction builder, so
there's no error to test for.
  • Loading branch information
str4d committed Aug 7, 2020
1 parent 7fa2bb6 commit 3855cf8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/gtest/test_transaction_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,6 @@ TEST(TransactionBuilder, SproutToSproutAndSapling) {
RegtestDeactivateSapling();
}

TEST(TransactionBuilder, ThrowsOnSproutOutputWithoutParams)
{
auto consensusParams = Params().GetConsensus();
auto sk = libzcash::SproutSpendingKey::random();
auto addr = sk.address();

auto builder = TransactionBuilder(consensusParams, 1);
ASSERT_THROW(builder.AddSproutOutput(addr, 10), std::runtime_error);
}

TEST(TransactionBuilder, ThrowsOnTransparentInputWithoutKeyStore)
{
SelectParams(CBaseChainParams::REGTEST);
Expand Down

0 comments on commit 3855cf8

Please sign in to comment.