Skip to content

Added test for watch functionality#3

Merged
tryggvil merged 1 commit intomainfrom
watch_changes
Jan 16, 2025
Merged

Added test for watch functionality#3
tryggvil merged 1 commit intomainfrom
watch_changes

Conversation

@tryggvil
Copy link
Contributor

Also changed watch implementation to use a separate connection, to avoid having mutex be locked indefinately while a watch is in progress.

Seems to also fix weird behavior where watch callback would be called with info object that had garbled action element.

However, after running yarn test 60 times, only 40 runs were successful.

14 runs ended with:
node(47623,0x17012f000) malloc: *** error for object 0x1: pointer being freed was not allocated node(47623,0x17012f000) malloc: *** set a breakpoint in malloc_error_break to debug Stopping samba EXITCODE=129

4 runs ended with:
node(48547,0x174603000) malloc: Heap corruption detected, free list is damaged at 0x60000002b7e0 *** Incorrect guard value: 1
node(48547,0x174603000) malloc: *** set a breakpoint in malloc_error_break to debug Stopping samba EXITCODE=129

2 runs had no error messages and no 'should handle watch' - simply ended with: Stopping samba EXITCODE=129

Also changed watch implementation to use a separate connection, to avoid having
mutex be locked indefinately while a watch is in progress.

Seems to also fix weird behavior where watch callback would be called with info
object that had garbled action element.

However, after running `yarn test` 60 times, only 40 runs were successful.

14 runs ended with:
node(47623,0x17012f000) malloc: *** error for object 0x1: pointer being freed was not allocated
node(47623,0x17012f000) malloc: *** set a breakpoint in malloc_error_break to debug
Stopping samba EXITCODE=129

4 runs ended with:
node(48547,0x174603000) malloc: Heap corruption detected, free list is damaged at 0x60000002b7e0
*** Incorrect guard value: 1
node(48547,0x174603000) malloc: *** set a breakpoint in malloc_error_break to debug
Stopping samba EXITCODE=129

2 runs had no error messages and no 'should handle watch' - simply ended with:
Stopping samba EXITCODE=129
@tryggvil tryggvil merged commit 134ac01 into main Jan 16, 2025
10 of 13 checks passed
@fridvin-netapp fridvin-netapp deleted the watch_changes branch January 17, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants