test(tdengine): expect USE schema switch before query execution
This commit is contained in:
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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user