aboutsummaryrefslogtreecommitdiffstats
path: root/mux_test.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-08-22 21:12:12 -0400
committerSam Anthony <sam@samanthony.xyz>2024-08-22 21:12:12 -0400
commitd8743bbc53c8db43151ef89d21264b531bea3d4c (patch)
treeba941b7aa904bbde985d3a76ca90028f4bf8a475 /mux_test.go
parent59cf78dbab8549761207b706f9856898cb5cd9c2 (diff)
downloadgui-d8743bbc53c8db43151ef89d21264b531bea3d4c.zip
test attachHandler
Diffstat (limited to 'mux_test.go')
-rw-r--r--mux_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/mux_test.go b/mux_test.go
index 95fe4ae..b159e99 100644
--- a/mux_test.go
+++ b/mux_test.go
@@ -11,8 +11,6 @@ import (
"github.com/fogleman/gg"
)
-const timeout = 1 * time.Second
-
// Send Events from the Mux to the Envs..
func TestMuxEvent(t *testing.T) {
rect := image.Rect(12, 34, 56, 78)
@@ -193,7 +191,7 @@ func newDummyEnv(size image.Rectangle) dummyEnv {
eventsIn <- Resize{size}
- return dummyEnv{eventsIn, eventsOut, drawIn, drawOut, kill, dead, attached.attach}
+ return dummyEnv{eventsIn, eventsOut, drawIn, drawOut, kill, dead, attached.attach()}
}
func (de dummyEnv) Events() <-chan Event {