mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-03 03:59:07 +02:00
This reverts commit 67e2185964.
This commit is contained in:
@@ -2,7 +2,6 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -52,16 +51,3 @@ func TestLogin(t *testing.T) {
|
||||
t.Errorf("expected non empty Private key, got empty")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsLinuxRunningDesktop(t *testing.T) {
|
||||
if runtime.GOOS != "linux" {
|
||||
t.Skip("skipping test on non-linux platform")
|
||||
}
|
||||
|
||||
t.Setenv("XDG_FOO", "BAR")
|
||||
|
||||
isDesktop := isLinuxRunningDesktop()
|
||||
if !isDesktop {
|
||||
t.Errorf("expected desktop environment, got false")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user