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.
1 file changed
tree: 8608b837340ae532fc5c4364d6fb02ba0573cd71
  1. .travis.yml
  2. CONTRIBUTING.md
  3. Documentation/
  4. LICENSE
  5. Makefile
  6. PATENTS
  7. README.md
  8. benchmark/
  9. call.go
  10. call_test.go
  11. clientconn.go
  12. clientconn_test.go
  13. codegen.sh
  14. codes/
  15. coverage.sh
  16. credentials/
  17. doc.go
  18. examples/
  19. grpclog/
  20. health/
  21. interop/
  22. metadata/
  23. naming/
  24. peer/
  25. picker.go
  26. picker_test.go
  27. rpc_util.go
  28. rpc_util_test.go
  29. server.go
  30. stream.go
  31. test/
  32. testdata/
  33. trace.go
  34. transport/
README.md

#gRPC-Go

Build Status GoDoc

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the gRPC Quick Start guide.

Installation

To install this package, you need to install Go 1.4 or above and setup your Go workspace on your computer. The simplest way to install the library is to run:

$ go get google.golang.org/grpc

Prerequisites

This requires Go 1.4 or above.

Constraints

The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the list, you need a discussion with gRPC-Go authors and consultants.

Documentation

See API documentation for package and API descriptions and find examples in the examples directory.

Status

Beta release