Port remaining mocks to libEpollFuzzer

This commit is contained in:
Alex Hultman
2021-02-17 19:12:45 +01:00
parent 7b330e9e03
commit 52927697c1
3 changed files with 162 additions and 2 deletions
+3 -2
View File
@@ -82,8 +82,8 @@ void test() {
},
.ping = [](auto *ws) {
/* We use this to trigger the async/wakeup feature */
uWS::Loop::get()->defer([]() {
/* Do nothing */
uWS::Loop::get()->defer([]() {
/* Do nothing */
});
},
.pong = [](auto *ws) {
@@ -101,6 +101,7 @@ void test() {
/* This function is stupid */
us_loop_iteration_number(loop);
struct us_socket_context_t *client_context = us_create_socket_context(0, loop, 0, {});
us_socket_context_timestamp(0, client_context);
client = us_socket_context_connect(0, client_context, "hostname", 5000, "localhost", 0, 0);
us_socket_context_on_connect_error(0, client_context, [](struct us_socket_t *s, int code) {