We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6378a8 commit b127557Copy full SHA for b127557
responses_test.go
@@ -1,22 +1,19 @@
1
package twilio
2
3
import (
4
- "flag"
5
"net/http"
6
"net/http/httptest"
7
"net/url"
8
"os"
9
"sync"
10
- "testing"
11
)
12
13
// the envClient is configured to use an Account Sid and Auth Token set in the
14
// environment. all non-short tests should use the envClient
15
var envClient *Client
16
17
func init() {
18
- flag.Parse()
19
- if !testing.Short() && os.Getenv("TWILIO_ACCOUNT_SID") == "" {
+ if os.Getenv("TWILIO_ACCOUNT_SID") == "" {
20
os.Stderr.WriteString("warning: no TWILIO_ACCOUNT_SID configured, HTTP tests will probably fail...\n\n")
21
}
22
envClient = NewClient(os.Getenv("TWILIO_ACCOUNT_SID"), os.Getenv("TWILIO_AUTH_TOKEN"), nil)
0 commit comments