Skip to content

Commit 6879722

Browse files
imirkingopherbot
authored andcommitted
ssh: remove go 1.21+ dependency on slices
Fixes golang/go#68469 Change-Id: Ieea3c444b0458d169a6ff224e59b3b815264de89 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/598775 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Nicola Murino <[email protected]> Auto-Submit: Nicola Murino <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent e983fa2 commit 6879722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssh/server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"io"
1111
"net"
12-
"slices"
12+
"reflect"
1313
"strings"
1414
"sync/atomic"
1515
"testing"
@@ -294,7 +294,7 @@ func TestBannerError(t *testing.T) {
294294
"banner from PublicKeyCallback",
295295
"banner from KeyboardInteractiveCallback",
296296
}
297-
if !slices.Equal(banners, wantBanners) {
297+
if !reflect.DeepEqual(banners, wantBanners) {
298298
t.Errorf("got banners:\n%q\nwant banners:\n%q", banners, wantBanners)
299299
}
300300
}

0 commit comments

Comments
 (0)