1
0
mirror of https://github.com/joshuarubin/go-sway synced 2024-11-26 08:43:49 +01:00
Signed-off-by: Joshua Rubin <me@jawa.dev>
This commit is contained in:
Joshua Rubin 2021-09-23 08:24:01 -06:00
parent b56ddd2124
commit 7764779055
No known key found for this signature in database
GPG Key ID: F63BF258817C01A8

@ -3,6 +3,7 @@ package sway_test
import (
"context"
"encoding/json"
"errors"
"fmt"
"log"
"testing"
@ -115,7 +116,7 @@ func TestSocket(t *testing.T) {
client: client,
}
if err = sway.Subscribe(ctx, th, sway.EventTypeWindow); err != context.DeadlineExceeded && err != nil {
if err = sway.Subscribe(ctx, th, sway.EventTypeWindow); err != nil && !errors.Is(err, context.DeadlineExceeded) {
t.Fatal(err)
}
}