We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc6beb9 commit e424861Copy full SHA for e424861
tests/netebpfext_unit/netebpfext_unit.cpp
@@ -617,11 +617,23 @@ sock_addr_thread_function(
617
break;
618
case SOCK_ADDR_TEST_TYPE_CONNECT:
619
default:
620
+ // TODO: Bug filed in catchorg/Catch2#2935. Revert this change once the bug is fixed.
621
+#ifdef _DEBUG
622
+ result = FWP_ACTION_PERMIT;
623
+#else
624
result = helper->test_cgroup_inet4_connect(parameters);
625
+#endif
626
627
}
628
629
630
+ bool validate = (result == _get_fwp_sock_addr_action(port_number) || fault_injection_enabled);
631
+ if (!validate) {
632
+ REQUIRE(false);
633
+ }
634
635
REQUIRE((result == _get_fwp_sock_addr_action(port_number) || fault_injection_enabled));
636
637
638
639
0 commit comments