blob: 03b4bba29c241061f749466b0578aed3d6621f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
https://github.com/Gnucash/gnucash/pull/1472
From 6fe2028bca49f455b7841d178a712baec8f72919 Mon Sep 17 00:00:00 2001
From: Marco Scardovi <mscardovi@icloud.com>
Date: Thu, 24 Nov 2022 23:20:07 +0100
Subject: [PATCH] Fix test
Signed-off-by: Marco Scardovi <mscardovi@icloud.com>
--- a/libgnucash/engine/mocks/fake-qofquery.cpp
+++ b/libgnucash/engine/mocks/fake-qofquery.cpp
@@ -59,8 +59,8 @@ static class QofFakeQueryPool
{
ASSERT_TRUE(query_used((QofQuery*)query));
auto it = std::find(m_queriesUsed.begin(), m_queriesUsed.end(), query);
- m_queriesUsed.erase(it);
m_queriesConsumed.push_back(*it);
+ m_queriesUsed.erase(it);
}
/* Remove a formerly added QofFakeQueryObject from the pool */
|