maksaska commented on code in PR #12998:
URL: https://github.com/apache/ignite/pull/12998#discussion_r3063135088


##########
modules/core/src/test/java/org/apache/ignite/internal/client/thin/FunctionalTest.java:
##########
@@ -743,6 +744,28 @@ public void testTxResumeAfterTxTimeout() throws Exception {
         }
     }
 
+    /** */
+    @Test
+    public void testTxResumeAfterTxTimeoutOnInitialize() {
+        IgniteConfiguration cfg = 
Config.getServerConfiguration().setClientConnectorConfiguration(
+            new ClientConnectorConfiguration().setThreadPoolSize(2));
+
+        try (Ignite ignite = Ignition.start(cfg); IgniteClient client = 
Ignition.startClient(getClientConfiguration())) {
+            ClientTransactions txs = client.transactions();
+
+            for (int i = 0; i < 10_000; i++) {
+                try {
+                    try (ClientTransaction tx = txs.txStart(OPTIMISTIC, 
SERIALIZABLE, 1)) {
+                        tx.commit();
+                    }
+                }
+                catch (ClientException e) {
+                    assertFalse(e.getCause().getMessage().contains("Thread 
already has started a transaction"));

Review Comment:
   Yes, you are right! It's better with assertTrue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to