diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-22 21:12:12 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-22 21:12:12 -0400 |
| commit | d8743bbc53c8db43151ef89d21264b531bea3d4c (patch) | |
| tree | ba941b7aa904bbde985d3a76ca90028f4bf8a475 /mux_test.go | |
| parent | 59cf78dbab8549761207b706f9856898cb5cd9c2 (diff) | |
| download | gui-d8743bbc53c8db43151ef89d21264b531bea3d4c.zip | |
test attachHandler
Diffstat (limited to 'mux_test.go')
| -rw-r--r-- | mux_test.go | 4 |
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 { |