Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Nov 24, 2023
1 parent ebfc4ee commit 9931e18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test-integration/studio/ui/StopQueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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());

}
}

0 comments on commit 9931e18

Please sign in to comment.