Skip in containers

This commit is contained in:
Viktor Liu 2025-06-13 19:07:44 +02:00
parent ebd848df2d
commit 73d9f565bc
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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() {