Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
Signed-off-by: ohdearaugustin <[email protected]>
  • Loading branch information
ohdearaugustin committed May 15, 2020
1 parent 7e5685f commit 2697e68
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cmd/query/app/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func TestQueryBuilderFlags(t *testing.T) {
assert.Equal(t, "/dev/null", qOpts.StaticAssets)
assert.Equal(t, "some.json", qOpts.UIConfig)
assert.Equal(t, "/jaeger", qOpts.BasePath)
//assert.Equal(t, 80, qOpts.Port)
assert.Equal(t, "127.0.0.1:8080", qOpts.HostPort)
assert.Equal(t, http.Header{
"Access-Control-Allow-Origin": []string{"blerg"},
Expand All @@ -70,17 +69,6 @@ func TestQueryBuilderBadHeadersFlags(t *testing.T) {
assert.Nil(t, qOpts.AdditionalHeaders)
}

func TestQueryOptionsWithFlags_CheckHostPort(t *testing.T) {
q := &QueryOptions{}
v, command := config.Viperize(AddFlags)
command.ParseFlags([]string{
"--query.host-port=8080",
})
q.InitFromViper(v, zap.NewNop())

assert.Equal(t, ":8080", q.HostPort)
}

func TestStringSliceAsHeader(t *testing.T) {
headers := []string{
"Access-Control-Allow-Origin: https://mozilla.org",
Expand Down

0 comments on commit 2697e68

Please sign in to comment.