Commit Graph

98 Commits

Author SHA1 Message Date
Qi Zhao a0f854fec2 Merge pull request #515 from bradfitz/fatalf
Don't call t.FailNow in goroutines started by tests.
2016-02-01 12:50:34 -08:00
Brad Fitzpatrick 8024a575aa Don't call t.FailNow in goroutines started by tests.
The docs at https://golang.org/pkg/testing/#T.FailNow say:

> FailNow must be called from the goroutine running the test or
> benchmark function, not from other goroutines created during the
> test.

(Fatalf is documented as "Fatalf is equivalent to Logf followed by
FailNow.")

This was manifesting itself as a race with two concurrently failing
goroutines in my other CL, masking whatever the real problem was.
2016-02-01 19:15:37 +00:00
iamqizhao af8888dc8d remove Compressor/DecompressorGenerator 2016-01-29 14:38:20 -08:00
iamqizhao 6d87263bd5 add test 2016-01-27 18:34:24 -08:00
iamqizhao 61d7c39d4c comments and gofmt 2016-01-25 11:18:41 -08:00
iamqizhao da3bb0c9f7 Support compression 2016-01-22 18:21:41 -08:00
iamqizhao 6ef6ed778a test peer addr 2016-01-06 19:04:19 -08:00
iamqizhao b36c5c6fd9 Expose peer info 2016-01-06 18:20:01 -08:00
iamqizhao a98f0170cf fix some print format errors 2015-12-16 11:36:52 -08:00
iamqizhao 330d8f958c i) revise picker API and channel state API; ii) add unicastNamingPicker which supports custom name resolving. 2015-12-14 14:32:43 -08:00
iamqizhao cb8841c36e move some tests from end2end.go to clientconn_test.go 2015-11-06 11:33:13 -08:00
iamqizhao afca514667 Improve rpc cancellation when there is no pending I/O 2015-10-22 13:07:13 -07:00
iamqizhao f13f7f6db6 cleanup a test 2015-10-22 11:56:32 -07:00
iamqizhao 78e8635e67 cleanup a test 2015-10-22 11:55:01 -07:00
iamqizhao 7fcfcfa816 fix a counting race for max streams. 2015-10-22 11:00:21 -07:00
iamqizhao 17b181003d remove debug info 2015-10-21 15:24:16 -07:00
iamqizhao e18e2c8054 fix a bug in test 2015-10-21 15:21:58 -07:00
iamqizhao 67646dc278 update health check to the latest version 2015-09-17 14:36:11 -07:00
Tamir Duberstein fe58c815dd tests: use `testing.{B,T}` or return errors instead of crashing 2015-09-11 14:27:38 -04:00
Tamir Duberstein a6fe03ae2e credentials.TLSInfo: export State 2015-09-08 14:30:17 -04:00
iamqizhao 9ba820ef6a add tests 2015-08-28 13:50:04 -07:00
iamqizhao 87c361b5a5 check transport security when using oauth2-based credentials 2015-08-28 13:19:36 -07:00
iamqizhao 996538ab4b Insecure ClientConn made explicit 2015-08-27 17:21:52 -07:00
iamqizhao f49ac9d0df rename Type() 2015-08-26 13:43:04 -07:00
iamqizhao ef3d58fc04 add test 2015-08-26 13:11:34 -07:00
iamqizhao c0e23d7ef3 make the tests happy 2015-08-26 12:40:24 -07:00
iamqizhao 97574c6499 make the test happy 2015-08-24 11:40:40 -07:00
yangzhouhan e1eaac2884 add empty string check 2015-08-13 18:15:11 -07:00
yangzhouhan 5a78be3dbb update healthCheck service 2015-08-13 15:16:59 -07:00
yangzhouhan 1f14f6f0c5 gofmt 2015-08-10 17:34:20 -07:00
yangzhouhan bf963e1bb3 change end2end test 2015-08-10 16:59:16 -07:00
yangzhouhan 54f53f005e remove unused code 2015-08-10 16:10:19 -07:00
yangzhouhan 484e2d96e5 change the metadata datastructure 2015-08-10 16:06:27 -07:00
iamqizhao 7fbf442f72 gofmt -w 2015-08-03 13:24:14 -07:00
iamqizhao aefa16d77f add a bit more test 2015-08-03 13:09:15 -07:00
iamqizhao 14702f8b6a channel state API 2015-07-31 19:00:43 -07:00
iamqizhao a95e7d874d allow space-delimited application-provided user agent 2015-07-24 17:29:42 -07:00
iamqizhao 9fc076dd02 fix a flaky end2end test due to PR#248 2015-07-24 14:31:04 -07:00
iamqizhao c33d1609af refactor a bit 2015-07-24 11:39:27 -07:00
iamqizhao 611d960757 support user-agent and allow users attach their own application user agent string 2015-07-24 11:19:08 -07:00
yangzhouhan b022c50ebe modify something 2015-07-23 18:06:59 -07:00
yangzhouhan e6a0e51ad1 modify the status map type 2015-07-23 18:01:20 -07:00
yangzhouhan a09d93d316 fix fatal message 2015-07-23 17:47:32 -07:00
yangzhouhan 89139c920f format 2015-07-23 17:41:57 -07:00
yangzhouhan cdea3603c3 add space 2015-07-23 17:40:49 -07:00
yangzhouhan 8e88badc72 modify the fatal message 2015-07-23 17:35:44 -07:00
yangzhouhan a5348d9bde change error information 2015-07-23 17:14:27 -07:00
yangzhouhan 9d4ac0cac5 fix mutex problems and merge multiple servingstatus to one single test 2015-07-23 14:45:27 -07:00
yangzhouhan dc36cdbfdd add mutex and create newHealthServer Function 2015-07-22 16:26:16 -07:00
yangzhouhan 901c3e574c remove redundent space 2015-07-22 16:06:15 -07:00