From d8743bbc53c8db43151ef89d21264b531bea3d4c Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 22 Aug 2024 21:12:12 -0400 Subject: test attachHandler --- mux_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mux_test.go') 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 { -- cgit v1.2.3