Merge "Refactor `is_packet_capture_supported()` by `expect_throws()`" into main