Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cua-driver): force embedded mode in the SDK in-process loader tests (#6485)

injaneity785cbef9f699
diff --git a/libs/cua-driver/python/tests/test_uniffi_loader.py b/libs/cua-driver/python/tests/test_uniffi_loader.py
index 49b75ae09f..8793bb3003 100644
--- a/libs/cua-driver/python/tests/test_uniffi_loader.py
+++ b/libs/cua-driver/python/tests/test_uniffi_loader.py
@@ -410,7 +410,7 @@ except FileNotFoundError:
from cua_driver import CuaDriver, DriverExecutionMode
async def scenario() -> None:
- driver = CuaDriver.create()
+ driver = CuaDriver.create(embedded=True)
self.assertEqual(driver.execution_mode(), DriverExecutionMode.EMBEDDED)
self.assertEqual(driver.socket_path(), "")
self.assertTrue(driver.is_available())
diff --git a/libs/cua-driver/typescript/test/native-loader.test.mjs b/libs/cua-driver/typescript/test/native-loader.test.mjs
index 37a0d9f049..08247da9be 100644
--- a/libs/cua-driver/typescript/test/native-loader.test.mjs
+++ b/libs/cua-driver/typescript/test/native-loader.test.mjs
@@ -321,7 +321,7 @@ test(
{ skip: !existsSync(library), timeout: 10_000 },
async () => {
const { CuaDriver, DriverExecutionMode } = await import("@trycua/cua-driver")
- const driver = CuaDriver.create(undefined)
+ const driver = CuaDriver.create({ embedded: true })
try {
assert.equal(driver.executionMode(), DriverExecutionMode.Embedded)
assert.equal(driver.socketPath(), "")