Skip to content

Commit

Permalink
Merge 2f23a76 into 45b84df
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuntaoLu committed Apr 2, 2019
2 parents 45b84df + 2f23a76 commit 9c01424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,8 +1,8 @@
language: go
sudo: true
go:
- 1.10.x
- 1.11.x
- 1.12.x
go_import_path: github.com/uber/zanzibar
env:
global:
Expand Down
14 changes: 6 additions & 8 deletions Makefile
Expand Up @@ -83,7 +83,7 @@ lint: check-licence eclint-check
@echo "Checking printf statements..."
@git grep -E 'Fprintf\(os.Std(err|out)' | $(FILTER_LINT) | tee -a lint.log
@echo "Checking vet..."
@$(foreach dir,$(PKG_FILES),go tool vet $(VET_RULES) $(dir) 2>&1 | $(FILTER_LINT) | tee -a lint.log;)
@$(foreach dir,$(PKG_FILES),go vet $(VET_RULES) ./$(dir)/... 2>&1 | $(FILTER_LINT) | tee -a lint.log;)
@echo "Checking lint..."
@go get golang.org/x/lint/golint
@$(foreach dir,$(PKGS),golint $(dir) 2>&1 | $(FILTER_LINT) | tee -a lint.log;)
Expand Down Expand Up @@ -151,13 +151,11 @@ test-only:
@rm -f ./test/.cached_binary_test_info.json
@echo "Running all tests..."
@ZANZIBAR_CACHE=1 go test -race ./test/health_test.go # preload the binary cache
@PATH=$(PATH):$(GOIMPORTS) ZANZIBAR_CACHE=1 go test -race \
./examples/example-gateway/... \
./codegen/... \
./runtime/... | \
grep -v '\[no test files\]'
@PATH=$(PATH):$(GOIMPORTS) ZANZIBAR_CACHE=1 go test ./test/... | \
grep -v '\[no test files\]'
@PATH=$(PATH):$(GOIMPORTS) ZANZIBAR_CACHE=1 go test -race ./codegen/... ./runtime/... | grep -v '\[no test files\]'
@PATH=$(PATH):$(GOIMPORTS) ZANZIBAR_CACHE=1 go test -race $$(go list ./examples/example-gateway/... | grep -v build) | \
grep -v '\[no test files\]'
@PATH=$(PATH):$(GOIMPORTS) ZANZIBAR_CACHE=1 go test ./test/... ./examples/example-gateway/build/... | \
grep -v '\[no test files\]'
@rm -f ./test/.cached_binary_test_info.json
@echo "<coverage />" > ./coverage/cobertura-coverage.xml

Expand Down
3 changes: 3 additions & 0 deletions runtime/tchannel_client.go
Expand Up @@ -208,6 +208,9 @@ func (c *TChannelClient) call(

reqUUID := RequestUUIDFromCtx(ctx)
if reqUUID != "" {
if reqHeaders == nil {
reqHeaders = make(map[string]string)
}
reqHeaders[c.requestUUIDHeaderKey] = reqUUID
}

Expand Down

0 comments on commit 9c01424

Please sign in to comment.