Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: someshkoli <[email protected]>
  • Loading branch information
someshkoli committed Jun 1, 2021
1 parent 99ce283 commit 69776e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e/e2ethanos/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func NewPrometheusAndSidecarWithBasicAuth(sharedDir string, netName string, name
if err := ioutil.WriteFile(filepath.Join(dir, "prometheus.yml"), []byte(promConfig), 0666); err != nil {
return nil, nil, errors.Wrap(err, "creating prom config failed")
}
fmt.Println(webConfig)

if err := ioutil.WriteFile(filepath.Join(dir, "web-config.yml"), []byte(webConfig), 0666); err != nil {
return nil, nil, errors.Wrap(err, "creating web-config failed")
}
Expand Down
8 changes: 6 additions & 2 deletions test/e2e/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,16 @@ func TestQueryWithAuthorizedSidecar(t *testing.T) {

prom, sidecar, err := e2ethanos.NewPrometheusAndSidecarWithBasicAuth(s.SharedDir(), s.NetworkName(), "alone", defaultPromConfig("prom-alone", 0, "", ""), defaultWebConfig(), e2ethanos.DefaultPrometheusImage())
testutil.Ok(t, err)
s.StartAndWaitReady(prom, sidecar)
_ = s.StartAndWaitReady(prom, sidecar)

q, err := e2ethanos.NewQuerier(s.SharedDir(), "alone", []string{sidecar.GRPCNetworkEndpoint()}, nil, nil, nil, nil, nil, "", "")
q, err := e2ethanos.NewQuerierBuilder(s.SharedDir(), "1", []string{sidecar.GRPCNetworkEndpoint()}).Build()
testutil.Ok(t, err)
testutil.Ok(t, s.StartAndWaitReady(q))

// q, err := e2ethanos.NewQuerierBuilder(s.SharedDir(), "alone", []string{sidecar.GRPCNetworkEndpoint()}, nil, nil, nil, nil, nil, "", "")
// testutil.Ok(t, err).Build()
// testutil.Ok(t, s.StartAndWaitReady(q))

ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
t.Cleanup(cancel)

Expand Down

0 comments on commit 69776e5

Please sign in to comment.