test(tdengine): expect USE schema switch before query execution

This commit is contained in:
t8y2 committed 2026-07-06 20:13:52 +08:00
1 parent 5db0fc4fb1
commit 64d4afec1b
1 file changed
+3 -1
@@ -98,8 +98,10 @@ class TDengineAgentMetadataTest {
agent.executeQuery("SELECT 1", "power", new ExecuteQueryOptions());
// JdbcSchemaSwitcher executes the USE statement (recorded as "execute")
// before the query runs, so the database is switched prior to execution.
Assertions.assertEquals(
Arrays.asList("setMaxRows:10001", "execute"),
Arrays.asList("execute", "setMaxRows:10001", "execute"),
JdbcAgentFake.calls
);
}