Skip to content

Commit

Permalink
ssh: remove go 1.21+ dependency on slices
Browse files Browse the repository at this point in the history
Fixes golang/go#68469

Change-Id: Ieea3c444b0458d169a6ff224e59b3b815264de89
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/598775
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicola Murino <nicola.murino@gmail.com>
Auto-Submit: Nicola Murino <nicola.murino@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
  • Loading branch information
imirkin authored and gopherbot committed Jul 17, 2024
1 parent e983fa2 commit 6879722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"io"
"net"
"slices"
"reflect"
"strings"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -294,7 +294,7 @@ func TestBannerError(t *testing.T) {
"banner from PublicKeyCallback",
"banner from KeyboardInteractiveCallback",
}
if !slices.Equal(banners, wantBanners) {
if !reflect.DeepEqual(banners, wantBanners) {
t.Errorf("got banners:\n%q\nwant banners:\n%q", banners, wantBanners)
}
}
Expand Down

0 comments on commit 6879722

Please sign in to comment.