Skip to content

Commit

Permalink
changed test to use require to compare rootca
Browse files Browse the repository at this point in the history
  • Loading branch information
garmr-ulfr committed Nov 22, 2024
1 parent 1e272c8 commit 1df0cd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions transport/tls/stream_dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import (
"crypto/x509"
"testing"

"github.com/Jigsaw-Code/outline-sdk/transport"
"github.com/stretchr/testify/require"

"github.com/Jigsaw-Code/outline-sdk/transport"
)

func TestDomain(t *testing.T) {
Expand Down Expand Up @@ -145,7 +146,7 @@ func TestWithRootCAs(t *testing.T) {
rootCAs := x509.NewCertPool()
rootCAs.AddCert(&x509.Certificate{})
WithRootCAs(rootCAs)("", &cfg)
require.True(t, rootCAs.Equal(cfg.RootCAs))
require.Equal(t, rootCAs, cfg.RootCAs)
}

// Make sure there are no connection leakage in DialStream
Expand Down

0 comments on commit 1df0cd1

Please sign in to comment.