Skip to content

Commit

Permalink
Removed somewhat silly test
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Nov 10, 2024
1 parent 30e6969 commit 6e02586
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"testing"
"time"

commonconfig "github.com/getlantern/common/config"
"github.com/getlantern/detour"
"github.com/getlantern/flashlight/v7/common"
"github.com/getlantern/flashlight/v7/dialer"
Expand Down Expand Up @@ -431,7 +430,6 @@ type testDialer struct {
}

func (d *testDialer) DialProxy(ctx context.Context) (net.Conn, error) {
//return nil, fmt.Errorf("Not implemented")
return &net.TCPConn{}, nil
}

Expand Down Expand Up @@ -594,20 +592,3 @@ type response struct {
func (r *response) nested() (*http.Response, error) {
return http.ReadResponse(r.br, r.req)
}

func Test_initDialers(t *testing.T) {
proxies := newProxies()
client := newClient()
dialers, banditDialer, err := client.initDialers(proxies)
assert.NoError(t, err)
assert.NotNil(t, dialers)
assert.NotNil(t, banditDialer)
}

func newProxies() map[string]*commonconfig.ProxyConfig {
proxies := make(map[string]*commonconfig.ProxyConfig)
proxies["proxy1"] = &commonconfig.ProxyConfig{
Addr: "proxy1",
}
return proxies
}

0 comments on commit 6e02586

Please sign in to comment.