diff options
| author | Ilia Mirkin <imirkin@alum.mit.edu> | 2024-07-16 14:05:34 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-07-17 17:59:23 +0000 |
| commit | 68797222744d17ebda05804c6a5912bd129b8112 (patch) | |
| tree | 18563890693ab879bc0f76e4714d5b4823b6b7a7 | |
| parent | e983fa27418787af5c51d172b508cd85bc6644d0 (diff) | |
| download | go-x-crypto-68797222744d17ebda05804c6a5912bd129b8112.tar.xz | |
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 <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>
| -rw-r--r-- | ssh/server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh/server_test.go b/ssh/server_test.go index 9057a9b..b6d8ab3 100644 --- a/ssh/server_test.go +++ b/ssh/server_test.go @@ -9,7 +9,7 @@ import ( "fmt" "io" "net" - "slices" + "reflect" "strings" "sync/atomic" "testing" @@ -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) } } |
