]> Sergey Matveev's repositories - btrtrc.git/blobdiff - mse/mse_test.go
fixed code quality issues using DeepSource
[btrtrc.git] / mse / mse_test.go
index b10ca8f92a4b980bba4fa41d2c4a1757ed453858..f13c259f6c19f9c4bb400ae0ed0951fb86305a62 100644 (file)
@@ -87,7 +87,7 @@ func handshakeTest(t testing.TB, ia []byte, aData, bData string, cryptoProvides
                go b.Write([]byte(bData))
                // Need to be exact here, as there are several reads, and net.Pipe is most synchronous.
                msg := make([]byte, len(ia)+len(aData))
-               n, _ := io.ReadFull(b, msg[:])
+               n, _ := io.ReadFull(b, msg)
                if n != len(msg) {
                        t.FailNow()
                }