🐛 Fixed loopback and real ClientID hostnames
This commit is contained in:
parent
ae615df8c8
commit
e61c79136b
|
@ -19,7 +19,7 @@ func TestDiscovery(t *testing.T) {
|
|||
|
||||
store := new(sync.Map)
|
||||
testClient, localhostClient := domain.TestClient(t), domain.TestClient(t)
|
||||
localhostClient.ID, _ = domain.ParseClientID("http://localhost.toby3d.me/")
|
||||
localhostClient.ID, _ = domain.ParseClientID("http://localhost/")
|
||||
|
||||
for _, client := range []*domain.Client{testClient, localhostClient} {
|
||||
store.Store(path.Join(repository.DefaultPathPrefix, client.ID.String()), client)
|
||||
|
|
|
@ -107,7 +107,7 @@ func ParseClientID(src string) (*ClientID, error) {
|
|||
func TestClientID(tb testing.TB) *ClientID {
|
||||
tb.Helper()
|
||||
|
||||
clientID, err := ParseClientID("https://indieauth.example.com/")
|
||||
clientID, err := ParseClientID("https://example.com/")
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue