File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,29 +226,28 @@ func TestValidateBackends(t *testing.T) {
226226 }
227227 err := ValidateBackends (backends , false )
228228 require .Error (err )
229- // Check that we have the expected number of errors
230229 merr , ok := err .(* multierror.Error )
231230 require .True (ok )
232231 require .Equal (5 , len (merr .Errors ))
233232 })
234233
235- t .Run ("scheme mismatch using https when not permitted " , func (t * testing.T ) {
234+ t .Run ("scheme mismatch using https" , func (t * testing.T ) {
236235 backends := []Backend {
237236 "https://1.1.1.1" ,
238237 }
239238 err := ValidateBackends (backends , false )
240239 require .Error (err )
241240 })
242241
243- t .Run ("scheme mismatch using http when tlsPassthrough=true" , func (t * testing.T ) {
242+ t .Run ("scheme mismatch using http with tlsPassthrough=true" , func (t * testing.T ) {
244243 backends := []Backend {
245244 "http://1.1.1.1:80" ,
246245 }
247246 err := ValidateBackends (backends , true )
248247 require .Error (err )
249248 })
250249
251- t .Run ("all invalid backends" , func (t * testing.T ) {
250+ t .Run ("invalid backends" , func (t * testing.T ) {
252251 backends := []Backend {
253252 "invalid" ,
254253 "1.1.1.1:port" ,
You can’t perform that action at this time.
0 commit comments