Skip to content

Commit

Permalink
move constants to client_test.go file
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 Jun 30, 2022
1 parent 9c6b5e9 commit 0537b9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 5 additions & 2 deletions pkg/networkservice/common/mechanisms/vfio/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ import (
)

const (
serverSocket = "server.socket"
cgroupDir = "cgroup_dir"
serverSocket = "server.socket"
cgroupDir = "cgroup_dir"
vfioDevice = "vfio"
iommuGroup = 1
iommuGroupString = "1"
)

func testServer(ctx context.Context, tmpDir string) (*grpc.ClientConn, error) {
Expand Down
7 changes: 0 additions & 7 deletions pkg/networkservice/common/mechanisms/vfio/const_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright (c) 2020-2021 Doc.ai and/or its affiliates.
//
// Copyright (c) 2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -17,8 +15,3 @@
// limitations under the License.

package vfio_test

const (
vfioDevice = "vfio"
iommuGroupString = "1"
)

0 comments on commit 0537b9d

Please sign in to comment.