equal
deleted
inserted
replaced
493 // test to check that the line was now sent |
493 // test to check that the line was now sent |
494 log_info("checking that the delayed line was sent..."); |
494 log_info("checking that the delayed line was sent..."); |
495 assert_sock_data(sock, "TEST foo5\r\n"); |
495 assert_sock_data(sock, "TEST foo5\r\n"); |
496 assert(TAILQ_EMPTY(&queue->list)); |
496 assert(TAILQ_EMPTY(&queue->list)); |
497 assert(!event_pending(queue->ev, EV_TIMEOUT, NULL)); |
497 assert(!event_pending(queue->ev, EV_TIMEOUT, NULL)); |
|
498 |
|
499 // cleanup |
|
500 irc_queue_destroy(queue); |
498 } |
501 } |
499 |
502 |
500 struct test_conn_ctx { |
503 struct test_conn_ctx { |
501 /** Callback flags */ |
504 /** Callback flags */ |
502 bool on_registered, on_TEST, on_error, on_quit; |
505 bool on_registered, on_TEST, on_error, on_quit; |