| 66 | } |
| 67 | |
| 68 | static void executeLongRunningQuery(Connection* conn) { |
| 69 | auto result = conn->query( |
| 70 | "UNWIND RANGE(1,100000) AS x UNWIND RANGE(1, 100000) AS y RETURN COUNT(x + y);"); |
| 71 | ASSERT_FALSE(result->isSuccess()); |
| 72 | ASSERT_EQ(result->getErrorMessage(), "Interrupted."); |
| 73 | } |
| 74 | |
| 75 | TEST_F(ApiTest, Interrupt) { |
| 76 | std::thread longRunningQueryThread(executeLongRunningQuery, conn.get()); |
nothing calls this directly
no test coverage detected