Better configuration (#79)
* Configurable Transport (#75) * new functions to allow HTTPClient configuration * updated go.mod for testing from remote * updated go.mod for remote testing * revert go.mod replace directives * Fixed NewOrgClientWithTransport comment * Make client fully configurable * make empty messages limit configurable #70 #71 * make auth token private in config * add docs * lint --------- Co-authored-by: Michael Fox <m.will.fox@gmail.com>
This commit is contained in:
@@ -110,8 +110,10 @@ func TestAPIError(t *testing.T) {
|
||||
|
||||
func TestRequestError(t *testing.T) {
|
||||
var err error
|
||||
c := NewClient("dummy")
|
||||
c.BaseURL = "https://httpbin.org/status/418?"
|
||||
|
||||
config := DefaultConfig("dummy")
|
||||
config.BaseURL = "https://httpbin.org/status/418?"
|
||||
c := NewClientWithConfig(config)
|
||||
ctx := context.Background()
|
||||
_, err = c.ListEngines(ctx)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user