Skip to content

Commit

Permalink
enh(SQLiteTest): extend unit test to destroy SQL channel while it has…
Browse files Browse the repository at this point in the history
… pending messages. (#4529)
  • Loading branch information
matejk committed Apr 14, 2024
1 parent 09fbb70 commit 54b6e21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Data/SQLite/testsuite/src/SQLiteTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2537,6 +2537,19 @@ void SQLiteTest::testSQLChannel()
rs2.moveNext();
assertTrue("WarningSource" == rs2["Source"]);
assertTrue("f Warning sync message" == rs2["Text"]);

pChannel->setProperty("minBatch", "1024");
constexpr int mcount { 20000 };
for (int i = 0; i < mcount; i++)
{
Message msgInfA("InformationSource", "e Informational sync message", Message::PRIO_INFORMATION);

Check notice

Code scanning / CodeQL

Declaration hides variable Note

Variable msgInfA hides another variable of the same name (on
line 2521
).
pChannel->log(msgInfA);
}
//pChannel->stop();

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
pChannel.reset();
RecordSet rsl(tmp, "SELECT * FROM T_POCO_LOG");
assertEquals(2+mcount, rsl.rowCount());

}


Expand Down

0 comments on commit 54b6e21

Please sign in to comment.