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