Skip to content

Commit

Permalink
Include REST and reorder items to be sorted (#1780)
Browse files Browse the repository at this point in the history
We're still doing a linear search... but one day may be.
  • Loading branch information
vagababov authored Oct 6, 2020
1 parent b3f27fd commit 8922d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func RandomString() string {
}

// For the same prefix more specific should come first.
// Note: we expect GRPC.
var knownNames = []string{"HTTPS", "HTTP2", "HTTP", "GRPC", "TLS", "WS", "H2C"}
// Note: we expect GRPC vs gRPC.
var knownNames = []string{"GRPC", "H2C", "HTTPS", "HTTP2", "HTTP", "REST", "TLS", "WS"}

// MakeK8sNamePrefix converts each chunk of non-alphanumeric character into a single dash
// and also convert camelcase tokens into dash-delimited lowercase tokens.
Expand Down

0 comments on commit 8922d5c

Please sign in to comment.