Skip to content

Commit

Permalink
Update snowflake_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanius-collaris authored Mar 24, 2024
1 parent a4d4b68 commit 1692da6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/ptx/snowflake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ func TestSnowflakeMethodDomainFronting(t *testing.T) {
if meth.AMPCacheURL() != "" {
t.Fatal("invalid amp cache URL")
}
const brokerURL = "https://snowflake-broker.torproject.net.global.prod.fastly.net/"
const brokerURL = "https://1098762253.rsc.cdn77.org/"
if meth.BrokerURL() != brokerURL {
t.Fatal("invalid broker URL")
}
const frontDomain = "foursquare.com"
const frontDomain = "www.phpmyadmin.net"
if meth.FrontDomain() != frontDomain {
t.Fatal("invalid front domain")
}
Expand Down Expand Up @@ -54,7 +54,7 @@ func TestNewSnowflakeRendezvousMethod(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if _, ok := meth.(*snowflakeRendezvousMethodDomainFronting); !ok {
if _, ok := meth.(*SnowflakeRendezvousMethodDomainFronting); !ok {
t.Fatal("unexpected method type")
}
})
Expand All @@ -64,7 +64,7 @@ func TestNewSnowflakeRendezvousMethod(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if _, ok := meth.(*snowflakeRendezvousMethodDomainFronting); !ok {
if _, ok := meth.(*SnowflakeRendezvousMethodDomainFronting); !ok {
t.Fatal("unexpected method type")
}
})
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestNewSnowflakeRendezvousMethod(t *testing.T) {

func TestNewSnowflakeDialer(t *testing.T) {
dialer := NewSnowflakeDialer()
_, ok := dialer.RendezvousMethod.(*snowflakeRendezvousMethodDomainFronting)
_, ok := dialer.RendezvousMethod.(*SnowflakeRendezvousMethodDomainFronting)
if !ok {
t.Fatal("invalid rendezvous method type")
}
Expand Down

0 comments on commit 1692da6

Please sign in to comment.