1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-04-04 22:34:22 +02:00

Fix expected error messages (#1269)

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
wyewata 2021-07-29 03:56:23 +09:00 committed by GitHub
parent 0b4bc36554
commit a35db2ae8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ var _ = Describe("Server", func() {
Handler: handler,
BindAddress: "127.0.0.1:a",
},
expectedErr: errors.New("error setting up listener: listen (tcp, 127.0.0.1:a) failed: listen tcp: lookup tcp/a: "),
expectedErr: errors.New("error setting up listener: listen (tcp, 127.0.0.1:a) failed: listen tcp: "),
expectHTTPListener: false,
expectTLSListener: false,
}),
@ -153,7 +153,7 @@ var _ = Describe("Server", func() {
Cert: &certDataSource,
},
},
expectedErr: errors.New("error setting up TLS listener: listen (127.0.0.1:a) failed: listen tcp: lookup tcp/a: "),
expectedErr: errors.New("error setting up TLS listener: listen (127.0.0.1:a) failed: listen tcp: "),
expectHTTPListener: false,
expectTLSListener: false,
}),