Skip to content

Commit

Permalink
Tests fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Feb 10, 2016
1 parent cfb853b commit 8ef7fdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions database.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ type DB struct {

// New returns a new DB object.
func New() *DB {
c := &http.Client{
Transport: &http.Transport{
MaxIdleConnsPerHost: 100,
},
}

return &DB{conn: c, l: newLogger()}
return &DB{conn: &http.Client{}, l: newLogger()}
}

// LoggerOptions sets the Arangolite logger options.
Expand Down
2 changes: 1 addition & 1 deletion query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestQueryRun(t *testing.T) {
result, err = db.Run(q)

r.NoError(err)
a.Equal("[{}]", string(result))
a.Equal("[{},{}]", string(result))

httpmock.RegisterResponder("POST", "http://arangodb:8000/_db/dbName/_api/cursor",
httpmock.NewStringResponder(500, `{"error": true, "errorMessage": "error !"}`))
Expand Down

0 comments on commit 8ef7fdb

Please sign in to comment.