From 741ed524364351d25e4f2653273611c166390211 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Wed, 2 Feb 2022 17:48:35 -0700 Subject: [PATCH] Fix nondeterministic test error (checking for the wrong error case). --- src/wallet/gtest/test_wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/gtest/test_wallet.cpp b/src/wallet/gtest/test_wallet.cpp index 9c58be570..bc0016606 100644 --- a/src/wallet/gtest/test_wallet.cpp +++ b/src/wallet/gtest/test_wallet.cpp @@ -2224,7 +2224,7 @@ TEST(WalletTests, GenerateUnifiedAddress) { } else { // the previous generation attempt succeeded, so this one should definitely fail. uaResult = wallet.GenerateUnifiedAddress(0, {ReceiverType::P2PKH, ReceiverType::Sapling}); - expected = UnifiedAddressGenerationError::DiversifierSpaceExhausted; + expected = UnifiedAddressGenerationError::InvalidTransparentChildIndex; EXPECT_EQ(uaResult, expected); }