mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
io/router: ensure root pointer area in deferred calls
Fixes: https://todo.sr.ht/~eliasnaur/gio/372 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1097,6 +1097,18 @@ func TestTransfer(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestDeferredInputOp(t *testing.T) {
|
||||
var ops op.Ops
|
||||
|
||||
var r Router
|
||||
m := op.Record(&ops)
|
||||
key.InputOp{Tag: new(int)}.Add(&ops)
|
||||
call := m.Stop()
|
||||
|
||||
op.Defer(&ops, call)
|
||||
r.Frame(&ops)
|
||||
}
|
||||
|
||||
// offer satisfies io.ReadCloser for use in data transfers.
|
||||
type offer struct {
|
||||
data string
|
||||
|
||||
Reference in New Issue
Block a user