Commit db5f6439 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Make etcd test linux-only

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 4cacf6e1) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 3619be4d
//go:build linux
// +build linux
package etcd
import (
......@@ -80,7 +83,6 @@ func generateTestHandler() http.Handler {
func Test_UnitETCD_IsInitialized(t *testing.T) {
type args struct {
ctx context.Context
config *config.Control
}
tests := []struct {
......@@ -94,7 +96,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
{
name: "directory exists",
args: args{
ctx: context.TODO(),
config: generateTestConfig(),
},
setup: func(cnf *config.Control) error {
......@@ -113,7 +114,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
{
name: "directory does not exist",
args: args{
ctx: context.TODO(),
config: generateTestConfig(),
},
setup: func(cnf *config.Control) error {
......@@ -160,7 +160,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
func Test_UnitETCD_Register(t *testing.T) {
type args struct {
ctx context.Context
config *config.Control
handler http.Handler
}
......@@ -174,7 +173,6 @@ func Test_UnitETCD_Register(t *testing.T) {
{
name: "standard config",
args: args{
ctx: context.TODO(),
config: generateTestConfig(),
handler: generateTestHandler(),
},
......@@ -189,7 +187,6 @@ func Test_UnitETCD_Register(t *testing.T) {
{
name: "with a tombstone file created",
args: args{
ctx: context.TODO(),
config: generateTestConfig(),
handler: generateTestHandler(),
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment