Skip to content

Instantly share code, notes, and snippets.

@mduvall
Created April 12, 2016 15:40
Show Gist options
  • Save mduvall/9b6cc1ee134d345da4eb5733c35e6047 to your computer and use it in GitHub Desktop.
Save mduvall/9b6cc1ee134d345da4eb5733c35e6047 to your computer and use it in GitHub Desktop.
go test ./... -p=1
ok github.com/stripe/stripe-go 0.009s
ok github.com/stripe/stripe-go/account 13.484s
ok github.com/stripe/stripe-go/balance 1.082s
ok github.com/stripe/stripe-go/bankaccount 1.315s
ok github.com/stripe/stripe-go/bitcoinreceiver 3.678s
ok github.com/stripe/stripe-go/bitcointransaction 0.919s
ok github.com/stripe/stripe-go/card 9.035s
ok github.com/stripe/stripe-go/charge 15.264s
2016/04/12 08:37:55 Requesting POST api.stripe.com/v1/charges
2016/04/12 08:37:56 Requesting POST api.stripe.com/v1/charges
2016/04/12 08:37:56 Requesting GET api.stripe.com/v1/account
2016/04/12 08:37:57 Requesting GET api.stripe.com/v1/account
2016/04/12 08:37:57 Error encountered from Stripe: {"type":"invalid_request_error","message":"Invalid API Key provided: bad_key","status":401}
2016/04/12 08:37:57 Requesting POST api.stripe.com/v1/charges
2016/04/12 08:37:57 Requesting POST api.stripe.com/v1/plans
2016/04/12 08:37:57 Requesting DELETE api.stripe.com/v1/plans/go_binding
2016/04/12 08:37:57 Requesting POST api.stripe.com/v1/plans
2016/04/12 08:37:57 Requesting POST api.stripe.com/v1/plans
2016/04/12 08:37:58 Requesting POST api.stripe.com/v1/plans
2016/04/12 08:37:58 Requesting POST api.stripe.com/v1/plans
2016/04/12 08:37:58 Requesting GET api.stripe.com/v1/plans
2016/04/12 08:37:58 Requesting DELETE api.stripe.com/v1/plans/go_binding_0
2016/04/12 08:37:58 Requesting DELETE api.stripe.com/v1/plans/go_binding_1
2016/04/12 08:37:58 Requesting DELETE api.stripe.com/v1/plans/go_binding_2
2016/04/12 08:37:58 Requesting DELETE api.stripe.com/v1/plans/go_binding_3
2016/04/12 08:37:59 Requesting GET api.stripe.com/v1/account
2016/04/12 08:37:59 Error encountered from Stripe: {"type":"invalid_request_error","message":"Invalid API Key provided: bad_key","status":401}
--- FAIL: TestErrors (0.06s)
error_test.go:27: Request ID "" does not start with 'req_'
FAIL
FAIL github.com/stripe/stripe-go/client 3.247s
ok github.com/stripe/stripe-go/countryspec 0.941s
ok github.com/stripe/stripe-go/coupon 6.269s
? github.com/stripe/stripe-go/currency [no test files]
ok github.com/stripe/stripe-go/customer 8.487s
? github.com/stripe/stripe-go/discount [no test files]
ok github.com/stripe/stripe-go/dispute 4.028s
2016/04/12 08:38:24 Requesting GET api.stripe.com/v1/events
2016/04/12 08:38:24 Requesting GET api.stripe.com/v1/events/evt_8FzaFpVBM0DW5y
--- FAIL: TestEvent (0.43s)
panic: interface conversion: interface {} is nil, not map[string]interface {} [recovered]
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 20 [running]:
testing.tRunner.func1(0xc8200a01b0)
/usr/local/go/src/testing/testing.go:450 +0x171
github.com/stripe/stripe-go.getValue(0xc820010600, 0xc8200cbf20, 0x2, 0x2, 0x0, 0x0)
/Users/matt/go/src/github.com/stripe/stripe-go/event.go:66 +0x231
github.com/stripe/stripe-go.(*Event).GetObjValue(0xc8200180c0, 0xc8200cbf20, 0x2, 0x2, 0x0, 0x0)
/Users/matt/go/src/github.com/stripe/stripe-go/event.go:39 +0x53
github.com/stripe/stripe-go/event.TestEvent(0xc8200a01b0)
/Users/matt/go/src/github.com/stripe/stripe-go/event/client_test.go:65 +0x7a7
testing.tRunner(0xc8200a01b0, 0x542840)
/usr/local/go/src/testing/testing.go:456 +0x98
created by testing.RunTests
/usr/local/go/src/testing/testing.go:561 +0x86d
goroutine 1 [chan receive]:
testing.RunTests(0x430c98, 0x542840, 0x1, 0x1, 0xc820010001)
/usr/local/go/src/testing/testing.go:562 +0x8ad
testing.(*M).Run(0xc82004def8, 0x3a27a0)
/usr/local/go/src/testing/testing.go:494 +0x70
main.main()
github.com/stripe/stripe-go/event/_test/_testmain.go:54 +0x116
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 25 [IO wait]:
net.runtime_pollWait(0x6978b0, 0x72, 0xc820072080)
/usr/local/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82006c290, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82006c290, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc82006c230, 0xc820438000, 0x4000, 0x4000, 0x0, 0x692028, 0xc820072080)
/usr/local/go/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc820082060, 0xc820438000, 0x4000, 0x4000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:172 +0xe4
crypto/tls.(*block).readFromUntil(0xc8200771a0, 0x6979e8, 0xc820082060, 0x5, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:455 +0xcc
crypto/tls.(*Conn).readRecord(0xc8200962c0, 0x431317, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:540 +0x2d1
crypto/tls.(*Conn).Read(0xc8200962c0, 0xc820187000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:901 +0x167
net/http.noteEOFReader.Read(0x6a0410, 0xc8200962c0, 0xc8200d2058, 0xc820187000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc820405d40, 0xc820187000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
<autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc8203f6a20)
/usr/local/go/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc8203f6a20, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc8200d2000)
/usr/local/go/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:685 +0xc78
goroutine 26 [select]:
net/http.(*persistConn).writeLoop(0xc8200d2000)
/usr/local/go/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:686 +0xc9d
FAIL github.com/stripe/stripe-go/event 0.447s
? github.com/stripe/stripe-go/fee [no test files]
? github.com/stripe/stripe-go/feerefund [no test files]
ok github.com/stripe/stripe-go/fileupload 2.625s
ok github.com/stripe/stripe-go/invoice 6.600s
? github.com/stripe/stripe-go/invoiceitem [no test files]
ok github.com/stripe/stripe-go/order 6.440s
? github.com/stripe/stripe-go/orderitem [no test files]
ok github.com/stripe/stripe-go/paymentsource 12.203s
ok github.com/stripe/stripe-go/plan 4.599s
ok github.com/stripe/stripe-go/product 3.708s
ok github.com/stripe/stripe-go/recipient 9.094s
ok github.com/stripe/stripe-go/refund 7.316s
ok github.com/stripe/stripe-go/reversal 4.693s
ok github.com/stripe/stripe-go/sku 2.208s
ok github.com/stripe/stripe-go/sub 29.347s
? github.com/stripe/stripe-go/testing [no test files]
ok github.com/stripe/stripe-go/token 1.841s
FAIL github.com/stripe/stripe-go/transfer [build failed]
? github.com/stripe/stripe-go/utils [no test files]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment