From c84a2dbe03da6e115aa18fb866df1c88782bb1fe Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 7 Aug 2024 12:30:42 +0000 Subject: [PATCH] test: check for `UV_CHANGE` or `UV_RENAME` event All other checks for `UV_RENAME` in `test-fs-event` also allow `UV_CHANGE`. --- test/test-fs-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-fs-event.c b/test/test-fs-event.c index ccfa2cbe..17048a65 100644 --- a/test/test-fs-event.c +++ b/test/test-fs-event.c @@ -152,7 +152,7 @@ static void fs_event_cb_del_dir(uv_fs_event_t* handle, ++fs_event_cb_called; ASSERT_PTR_EQ(handle, &fs_event); ASSERT_OK(status); - ASSERT_EQ(events, UV_RENAME); + ASSERT(events == UV_CHANGE || events == UV_RENAME); ASSERT_OK(strcmp(filename, "watch_del_dir")); ASSERT_OK(uv_fs_event_stop(handle)); uv_close((uv_handle_t*)handle, close_cb);