Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Improve recursive watch tests and folders naming

Jakub Dobrýc8914c211413
diff --git a/packages/js-sdk/tests/sandbox/files/watch.test.ts b/packages/js-sdk/tests/sandbox/files/watch.test.ts
index 9a4127061..3a4b17da8 100644
--- a/packages/js-sdk/tests/sandbox/files/watch.test.ts
+++ b/packages/js-sdk/tests/sandbox/files/watch.test.ts
@@ -32,7 +32,7 @@ sandboxTest('watch directory changes', async ({ sandbox }) => {
})
sandboxTest('watch recursive directory changes', async ({ sandbox }) => {
- const dirname = 'test_watch_dir'
+ const dirname = 'test_recursive_watch_dir'
const nestedDirname = 'test_nested_watch_dir'
const filename = 'test_watch.txt'
const content = 'This file will be watched.'
@@ -64,8 +64,8 @@ sandboxTest('watch recursive directory changes', async ({ sandbox }) => {
await handle.stop()
})
-sandboxTest('watch recursive directory folder addition', async ({ sandbox }) => {
- const dirname = 'test_watch_dir'
+sandboxTest('watch recursive directory after nested folder addition', async ({ sandbox }) => {
+ const dirname = 'test_recursive_watch_dir_add'
const nestedDirname = 'test_nested_watch_dir'
const filename = 'test_watch.txt'
const content = 'This file will be watched.'
diff --git a/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py b/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py
index 7973fc03a..5e21f823c 100644
--- a/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py
+++ b/packages/python-sdk/tests/async/sandbox_async/files/test_watch.py
@@ -36,7 +36,7 @@ async def test_watch_directory_changes(async_sandbox: AsyncSandbox):
async def test_watch_recursive_directory_changes(async_sandbox: AsyncSandbox):
- dirname = "test_watch_dir"
+ dirname = "test_recursive_watch_dir"
nested_dirname = "test_nested_watch_dir"
filename = "test_watch.txt"
content = "This file will be watched."
@@ -63,8 +63,8 @@ async def test_watch_recursive_directory_changes(async_sandbox: AsyncSandbox):
await handle.stop()
-async def test_watch_recursive_directory_folder_addition(async_sandbox: AsyncSandbox):
- dirname = "test_watch_dir"
+async def test_watch_recursive_directory_after_nested_folder_addition(async_sandbox: AsyncSandbox):
+ dirname = "test_recursive_watch_dir_add"
nested_dirname = "test_nested_watch_dir"
filename = "test_watch.txt"
content = "This file will be watched."
diff --git a/packages/python-sdk/tests/sync/sandbox_sync/files/test_watch.py b/packages/python-sdk/tests/sync/sandbox_sync/files/test_watch.py
index 6c701ef89..779db6ab7 100644
--- a/packages/python-sdk/tests/sync/sandbox_sync/files/test_watch.py
+++ b/packages/python-sdk/tests/sync/sandbox_sync/files/test_watch.py
@@ -49,7 +49,7 @@ def test_watch_iterated(sandbox: Sandbox):
def test_watch_recursive_directory_changes(sandbox: Sandbox):
- dirname = "test_watch_dir"
+ dirname = "test_recursive_watch_dir"
nested_dirname = "test_nested_watch_dir"
filename = "test_watch.txt"
content = "This file will be watched."
@@ -69,8 +69,8 @@ def test_watch_recursive_directory_changes(sandbox: Sandbox):
handle.stop()
-def test_watch_recursive_directory_folder_addition(sandbox: Sandbox):
- dirname = "test_watch_dir"
+def test_watch_recursive_directory_after_nested_folder_addition(sandbox: Sandbox):
+ dirname = "test_recursive_watch_dir_add"
nested_dirname = "test_nested_watch_dir"
filename = "test_watch.txt"
content = "This file will be watched."