+ ok1(io_loop(&d->timers, &expired) == NULL);
+
+ /* One element, d->timer. */
+ ok1(expired == &d->timer);
+ ok1(!timers_expire(&d->timers, time_now()));
+ ok1(d->state == 1);
+
+ io_close(d->conn);
+
+ /* Finished will be called, d will be returned */
+ ok1(io_loop(&d->timers, &expired) == d);
+ ok1(expired == NULL);
+ ok1(d->state == 2);
+
+ /* It should have died. */