gnucash stable: Fix test-gnc-quotes.
John Ralls
jralls at code.gnucash.org
Sun Jul 9 14:18:45 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/a4e651eb (commit)
from https://github.com/Gnucash/gnucash/commit/037c2004 (commit)
commit a4e651ebc6a4f7b239d1b9cdb3f45abf1afbb198
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Jul 9 11:17:44 2023 -0700
Fix test-gnc-quotes.
Forgot to change the test's date-time to neutral time.
diff --git a/libgnucash/app-utils/test/gtest-gnc-quotes.cpp b/libgnucash/app-utils/test/gtest-gnc-quotes.cpp
index 30b8a5dc6f..1346d879eb 100644
--- a/libgnucash/app-utils/test/gtest-gnc-quotes.cpp
+++ b/libgnucash/app-utils/test/gtest-gnc-quotes.cpp
@@ -266,7 +266,7 @@ TEST_F(GncQuotesTest, fetch_one_commodity)
EXPECT_TRUE(failures.empty());
auto pricedb{gnc_pricedb_get_db(m_book)};
auto price{gnc_pricedb_lookup_latest(pricedb, hpe, usd)};
- auto datetime{static_cast<time64>(GncDateTime("20220901160000"))};
+ auto datetime{static_cast<time64>(GncDateTime("20220901105900"))};
EXPECT_EQ(usd, gnc_price_get_currency(price));
EXPECT_EQ(datetime, gnc_price_get_time64(price));
Summary of changes:
libgnucash/app-utils/test/gtest-gnc-quotes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list