Skip to content

Commit

Permalink
Further mock broker improvements
Browse files Browse the repository at this point in the history
- A set of response builders were introduced to construct
  responses based on a particular request parameters.
- mockbroker.SetHandlerByMap that provides a neat way of
  defining a request handler that use mockresponse builders.
- consumer_test.go was rewritten using the new test primitives.
  • Loading branch information
horkhe committed Aug 4, 2015
1 parent bcfa33e commit b3fa33f
Show file tree
Hide file tree
Showing 4 changed files with 884 additions and 477 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default: fmt vet errcheck test

test:
go test -v -timeout 60s -race ./...
go test -v -timeout 2m -race ./...

vet:
go vet ./...
Expand Down
Loading

0 comments on commit b3fa33f

Please sign in to comment.