Skip to content

Commit

Permalink
add begin to server
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Oct 12, 2023
1 parent 7ad780b commit 5f89df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,8 @@ on:
branches:
- "release/**"
jobs:
yamllint:
uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main

build-and-test:
uses: networkservicemesh/.github/.github/workflows/build-and-test.yaml@main
with:
os: '["ubuntu-latest", "macos-latest", "windows-latest"]'

golangci-lint:
uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main
with:
linter-version: v1.53.3

exclude-fmt-errorf:
uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main

restrict-nsm-deps:
uses: networkservicemesh/.github/.github/workflows/restrict-nsm-deps.yaml@main
with:
allowed_repositories: "api"

checkgomod:
uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main

gogenerate:
uses: networkservicemesh/.github/.github/workflows/sdk-gogenerate.yaml@main

exclude-replace:
uses: networkservicemesh/.github/.github/workflows/exclude-replace.yaml@main

code-cov:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -49,6 +16,4 @@ jobs:
with:
go-version: 1.20.5
- run: |
go test -coverprofile=coverage-${{ matrix.os }}.txt -covermode=atomic -race ./...
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
go test ./pkg/networkservice/common/mechanisms/recvfd -v -race -run TestRecvfd/TestRecvfdClosesSingleFile -count=100 -timeout=1000m
2 changes: 2 additions & 0 deletions pkg/networkservice/common/mechanisms/recvfd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"google.golang.org/grpc/credentials/insecure"

"github.com/networkservicemesh/sdk/pkg/networkservice/chains/client"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/begin"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/recvfd"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/sendfd"
"github.com/networkservicemesh/sdk/pkg/networkservice/core/chain"
Expand Down Expand Up @@ -77,6 +78,7 @@ func (s *checkRecvfdTestSuite) SetupTest() {
serveURL := &url.URL{Scheme: "unix", Path: sock.Name()}

testChain := chain.NewNetworkServiceServer(
begin.NewServer(),
checkcontext.NewServer(t, func(t *testing.T, c context.Context) {
injectErr := grpcfdutils.InjectOnFileReceivedCallback(c, func(fileName string, file *os.File) {
runtime.SetFinalizer(file, func(file *os.File) {
Expand Down

0 comments on commit 5f89df7

Please sign in to comment.