From 9030e8b5f094d9a7e2ef10e90e13416e201f7ca8 Mon Sep 17 00:00:00 2001 From: martinrusev Date: Fri, 6 Nov 2015 12:13:14 +0200 Subject: [PATCH] Update identation --- outputs/amon/amon_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/outputs/amon/amon_test.go b/outputs/amon/amon_test.go index 053d4e0e7..0b6e5c7b8 100644 --- a/outputs/amon/amon_test.go +++ b/outputs/amon/amon_test.go @@ -21,7 +21,6 @@ var ( fakeAmonInstance = "https://demo.amon.cx" ) - func TestUriOverride(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) @@ -30,10 +29,10 @@ func TestUriOverride(t *testing.T) { defer ts.Close() a := &Amon{ - ServerKey: fakeServerKey, + ServerKey: fakeServerKey, AmonInstance: fakeAmonInstance, } - + err := a.Connect() require.NoError(t, err) err = a.Write(testutil.MockBatchPoints().Points()) @@ -52,7 +51,7 @@ func TestBadStatusCode(t *testing.T) { defer ts.Close() a := &Amon{ - ServerKey: fakeServerKey, + ServerKey: fakeServerKey, AmonInstance: fakeAmonInstance, } err := a.Connect() @@ -67,7 +66,7 @@ func TestBadStatusCode(t *testing.T) { func TestAuthenticatedUrl(t *testing.T) { a := &Amon{ - ServerKey: fakeServerKey, + ServerKey: fakeServerKey, AmonInstance: fakeAmonInstance, } @@ -75,7 +74,6 @@ func TestAuthenticatedUrl(t *testing.T) { assert.EqualValues(t, fmt.Sprintf("%s/api/system/%s", fakeAmonInstance, fakeServerKey), authUrl) } - func TestBuildPoint(t *testing.T) { tags := make(map[string]string) var tagtests = []struct {