summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml3
-rwxr-xr-xMakefile2
-rwxr-xr-xutils/network_test.go23
-rwxr-xr-xutils/network_windows_test.go17
4 files changed, 0 insertions, 45 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ed9d7f5a..e04f4605 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -66,7 +66,6 @@ jobs:
if: ${{ matrix.os == 'windows-latest' }}
run: |
docker-compose -f ./tests/docker-compose.yaml up -d
- go test -v -race -tags=debug ./utils
go test -v -race -tags=debug ./pkg/pipe
go test -v -race -tags=debug ./pkg/pool
go test -v -race -tags=debug ./pkg/socket
@@ -98,7 +97,6 @@ jobs:
- name: Run golang tests on MacOS without codecov
if: ${{ matrix.os == 'macos-latest' }}
run: |
- go test -v -race -tags=debug ./utils
go test -v -race -tags=debug ./pkg/pipe
go test -v -race -tags=debug ./pkg/pool
go test -v -race -tags=debug ./pkg/socket
@@ -129,7 +127,6 @@ jobs:
run: |
docker-compose -f ./tests/docker-compose.yaml up -d
mkdir ./coverage-ci
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/utils.txt -covermode=atomic ./utils
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pipe.txt -covermode=atomic ./pkg/pipe
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pool.txt -covermode=atomic ./pkg/pool
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/socket.txt -covermode=atomic ./pkg/socket
diff --git a/Makefile b/Makefile
index 2c573f9e..ceda30e2 100755
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,6 @@ test_coverage:
docker-compose -f tests/docker-compose.yaml up -d
rm -rf coverage
mkdir coverage
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/utils.out -covermode=atomic ./utils
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/pipe.out -covermode=atomic ./pkg/pipe
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/pool.out -covermode=atomic ./pkg/pool
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/socket.out -covermode=atomic ./pkg/socket
@@ -59,7 +58,6 @@ test_coverage:
test: ## Run application tests
docker-compose -f tests/docker-compose.yaml up -d
- go test -v -race -cover -tags=debug -coverpkg=./... -covermode=atomic ./utils
go test -v -race -cover -tags=debug -coverpkg=./... -covermode=atomic ./pkg/pipe
go test -v -race -cover -tags=debug -coverpkg=./... -covermode=atomic ./pkg/pool
go test -v -race -cover -tags=debug -coverpkg=./... -covermode=atomic ./pkg/socket
diff --git a/utils/network_test.go b/utils/network_test.go
deleted file mode 100755
index cfed98f9..00000000
--- a/utils/network_test.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// +build linux darwin freebsd
-
-package utils
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestCreateListener(t *testing.T) {
- _, err := CreateListener("unexpected dsn")
- assert.Error(t, err, "Invalid DSN (tcp://:6001, unix://file.sock)")
-
- _, err = CreateListener("aaa://192.168.0.1")
- assert.Error(t, err, "Invalid Protocol (tcp://:6001, unix://file.sock)")
-}
-
-func TestUnixCreateListener(t *testing.T) {
- l, err := CreateListener("unix://file.sock")
- assert.NoError(t, err)
- l.Close()
-}
diff --git a/utils/network_windows_test.go b/utils/network_windows_test.go
deleted file mode 100755
index 59ec0485..00000000
--- a/utils/network_windows_test.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// +build windows
-
-package utils
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestCreateListener(t *testing.T) {
- _, err := CreateListener("unexpected dsn")
- assert.Error(t, err, "Invalid DSN (tcp://:6001, unix://file.sock)")
-
- _, err = CreateListener("aaa://192.168.0.1")
- assert.Error(t, err, "Invalid Protocol (tcp://:6001, unix://file.sock)")
-}