Skip to content

Commit

Permalink
Improve recursive watch tests and folders naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrac committed Dec 19, 2024
1 parent 378e633 commit 5fbb4de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/js-sdk/tests/sandbox/files/watch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down Expand Up @@ -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.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def handle_event(e: FilesystemEvent):


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."
Expand All @@ -63,8 +63,8 @@ def handle_event(e: FilesystemEvent):
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."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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."
Expand Down

0 comments on commit 5fbb4de

Please sign in to comment.