mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-24 03:31:28 +02:00
Skip in containers
This commit is contained in:
parent
ebd848df2d
commit
73d9f565bc
2
.github/workflows/golang-test-linux.yml
vendored
2
.github/workflows/golang-test-linux.yml
vendored
@ -150,6 +150,8 @@ jobs:
|
|||||||
name: "Client (Docker) / Unit"
|
name: "Client (Docker) / Unit"
|
||||||
needs: [build-cache]
|
needs: [build-cache]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
env:
|
||||||
|
CONTAINER: "true"
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
@ -3,6 +3,7 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -19,6 +20,10 @@ const (
|
|||||||
|
|
||||||
// TestServiceLifecycle tests the complete service lifecycle
|
// TestServiceLifecycle tests the complete service lifecycle
|
||||||
func TestServiceLifecycle(t *testing.T) {
|
func TestServiceLifecycle(t *testing.T) {
|
||||||
|
if os.Getenv("CONTAINER") == "true" {
|
||||||
|
t.Skip("Skipping service lifecycle test in container environment")
|
||||||
|
}
|
||||||
|
|
||||||
originalServiceName := serviceName
|
originalServiceName := serviceName
|
||||||
serviceName = "netbird-test-" + fmt.Sprintf("%d", time.Now().Unix())
|
serviceName = "netbird-test-" + fmt.Sprintf("%d", time.Now().Unix())
|
||||||
defer func() {
|
defer func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user