Skip to content
Browse files

Temporary fix to quell go vet error

In the move to go1.6, using a declared type as a slice shows up as an
error in go vet:
tcp_routes.TCPRoutes composite literal uses unkeyed fields

This error will be fixed in go1.7:
  • Loading branch information...
flawedmatrix committed Aug 8, 2016
1 parent 99c2dd6 commit c51b93e2b04a9497276a52c1186746fa84d9abbd
Showing with 1 addition and 1 deletion.
  1. +1 −1 routing_table/schema/endpoint/endpoint_utils_test.go
@@ -127,7 +127,7 @@ var _ = Describe("LRP Utils", func() {
desired := &models.DesiredLRP{
Domain: "tests",
ProcessGuid: "process-guid",
Routes: tcp_routes.TCPRoutes{{ExternalPort: 61000, ContainerPort: 8080}}.RoutingInfo(),
Routes: []tcp_routes.TCPRoute{{ExternalPort: 61000, ContainerPort: 8080}}.RoutingInfo(),
LogGuid: "abc-guid",

0 comments on commit c51b93e

Please sign in to comment.
You can’t perform that action at this time.