diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index cbce3e6e4..3826357df 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -150,6 +150,8 @@ jobs: name: "Client (Docker) / Unit" needs: [build-cache] runs-on: ubuntu-22.04 + env: + CONTAINER: "true" steps: - name: Install Go uses: actions/setup-go@v5 diff --git a/client/cmd/service_test.go b/client/cmd/service_test.go index 308a6abd3..8a829d7ad 100644 --- a/client/cmd/service_test.go +++ b/client/cmd/service_test.go @@ -3,6 +3,7 @@ package cmd import ( "context" "fmt" + "os" "runtime" "testing" "time" @@ -19,6 +20,10 @@ const ( // TestServiceLifecycle tests the complete service lifecycle func TestServiceLifecycle(t *testing.T) { + if os.Getenv("CONTAINER") == "true" { + t.Skip("Skipping service lifecycle test in container environment") + } + originalServiceName := serviceName serviceName = "netbird-test-" + fmt.Sprintf("%d", time.Now().Unix()) defer func() {