Skip to content

Commit

Permalink
Fix libunity test when running on github
Browse files Browse the repository at this point in the history
  • Loading branch information
bibelin committed Oct 1, 2024
1 parent ff4d66e commit f9b804f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taskbar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const desktop = "my.app.desktop"

func TestLibunity(t *testing.T) {
os.Setenv("GO_TASKBAR_BACKEND", "libunity")
if _, res := os.LookupEnv("GITHUB_ACTIONS"); res {
os.Setenv("XDG_SESSION_TYPE", "wayland")
}
tb, err := Connect(desktop, 0)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit f9b804f

Please sign in to comment.