Update identation

This commit is contained in:
martinrusev 2015-11-06 12:13:14 +02:00
parent 1c92cfb3b6
commit 9030e8b5f0
1 changed files with 4 additions and 6 deletions

View File

@ -21,7 +21,6 @@ var (
fakeAmonInstance = "https://demo.amon.cx" fakeAmonInstance = "https://demo.amon.cx"
) )
func TestUriOverride(t *testing.T) { func TestUriOverride(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
@ -30,7 +29,7 @@ func TestUriOverride(t *testing.T) {
defer ts.Close() defer ts.Close()
a := &Amon{ a := &Amon{
ServerKey: fakeServerKey, ServerKey: fakeServerKey,
AmonInstance: fakeAmonInstance, AmonInstance: fakeAmonInstance,
} }
@ -52,7 +51,7 @@ func TestBadStatusCode(t *testing.T) {
defer ts.Close() defer ts.Close()
a := &Amon{ a := &Amon{
ServerKey: fakeServerKey, ServerKey: fakeServerKey,
AmonInstance: fakeAmonInstance, AmonInstance: fakeAmonInstance,
} }
err := a.Connect() err := a.Connect()
@ -67,7 +66,7 @@ func TestBadStatusCode(t *testing.T) {
func TestAuthenticatedUrl(t *testing.T) { func TestAuthenticatedUrl(t *testing.T) {
a := &Amon{ a := &Amon{
ServerKey: fakeServerKey, ServerKey: fakeServerKey,
AmonInstance: fakeAmonInstance, AmonInstance: fakeAmonInstance,
} }
@ -75,7 +74,6 @@ func TestAuthenticatedUrl(t *testing.T) {
assert.EqualValues(t, fmt.Sprintf("%s/api/system/%s", fakeAmonInstance, fakeServerKey), authUrl) assert.EqualValues(t, fmt.Sprintf("%s/api/system/%s", fakeAmonInstance, fakeServerKey), authUrl)
} }
func TestBuildPoint(t *testing.T) { func TestBuildPoint(t *testing.T) {
tags := make(map[string]string) tags := make(map[string]string)
var tagtests = []struct { var tagtests = []struct {