From 9931e18cf6d955eef585f9fc1f141df2ce6256bd Mon Sep 17 00:00:00 2001 From: dzmipt Date: Fri, 24 Nov 2023 20:37:49 +0100 Subject: [PATCH] fix test --- test-integration/studio/ui/StopQueryTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test-integration/studio/ui/StopQueryTest.java b/test-integration/studio/ui/StopQueryTest.java index 3457f3ad..2f27b6b0 100644 --- a/test-integration/studio/ui/StopQueryTest.java +++ b/test-integration/studio/ui/StopQueryTest.java @@ -5,8 +5,7 @@ import org.junit.Test; import studio.kdb.MockQSession; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; public class StopQueryTest extends StudioTest { @@ -56,7 +55,9 @@ public void stopActionTest() { frameFixture.button("toolbarExecute").click(); }); - assertEquals(sessionCount + 1, MockQSession.getAllSessions().size()); + //We do not create a new session. But the session should be opened now + assertEquals(sessionCount, MockQSession.getAllSessions().size()); + assertFalse(sessions[0].isClosed()); } }