mse: Fix race in BenchmarkStreamRC4
This commit is contained in:
parent
ca20deeff6
commit
ea4be5cecb
|
@ -190,6 +190,7 @@ func benchmarkStream(t *testing.B, crypto CryptoMethod) {
|
|||
require.NoError(t, err)
|
||||
require.NoError(t, readAndWrite(rw, br, b))
|
||||
}()
|
||||
wg.Wait()
|
||||
t.StopTimer()
|
||||
if !bytes.Equal(ar, b) {
|
||||
t.Fatalf("A read the wrong bytes")
|
||||
|
|
Loading…
Reference in New Issue