Commit 4cacf6e1 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Make etcd test linux-only

parent 0d15457c
//go:build linux
// +build linux
package etcd package etcd
import ( import (
...@@ -80,7 +83,6 @@ func generateTestHandler() http.Handler { ...@@ -80,7 +83,6 @@ func generateTestHandler() http.Handler {
func Test_UnitETCD_IsInitialized(t *testing.T) { func Test_UnitETCD_IsInitialized(t *testing.T) {
type args struct { type args struct {
ctx context.Context
config *config.Control config *config.Control
} }
tests := []struct { tests := []struct {
...@@ -94,7 +96,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) { ...@@ -94,7 +96,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
{ {
name: "directory exists", name: "directory exists",
args: args{ args: args{
ctx: context.TODO(),
config: generateTestConfig(), config: generateTestConfig(),
}, },
setup: func(cnf *config.Control) error { setup: func(cnf *config.Control) error {
...@@ -113,7 +114,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) { ...@@ -113,7 +114,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
{ {
name: "directory does not exist", name: "directory does not exist",
args: args{ args: args{
ctx: context.TODO(),
config: generateTestConfig(), config: generateTestConfig(),
}, },
setup: func(cnf *config.Control) error { setup: func(cnf *config.Control) error {
...@@ -160,7 +160,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) { ...@@ -160,7 +160,6 @@ func Test_UnitETCD_IsInitialized(t *testing.T) {
func Test_UnitETCD_Register(t *testing.T) { func Test_UnitETCD_Register(t *testing.T) {
type args struct { type args struct {
ctx context.Context
config *config.Control config *config.Control
handler http.Handler handler http.Handler
} }
...@@ -174,7 +173,6 @@ func Test_UnitETCD_Register(t *testing.T) { ...@@ -174,7 +173,6 @@ func Test_UnitETCD_Register(t *testing.T) {
{ {
name: "standard config", name: "standard config",
args: args{ args: args{
ctx: context.TODO(),
config: generateTestConfig(), config: generateTestConfig(),
handler: generateTestHandler(), handler: generateTestHandler(),
}, },
...@@ -189,7 +187,6 @@ func Test_UnitETCD_Register(t *testing.T) { ...@@ -189,7 +187,6 @@ func Test_UnitETCD_Register(t *testing.T) {
{ {
name: "with a tombstone file created", name: "with a tombstone file created",
args: args{ args: args{
ctx: context.TODO(),
config: generateTestConfig(), config: generateTestConfig(),
handler: generateTestHandler(), 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