Skip to content

Commit 8d2702d

Browse files
committed
fix: typos
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
1 parent 669e488 commit 8d2702d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

pkg/gridtypes/zos/gw_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)