Correct typo in test error message

The error message within the test case had a typographical error. The word "length" was incorrectly spelled as "lenght". This has been fixed to enhance the readability of the code.
This commit is contained in:
Winni Neessen 2024-03-14 22:28:35 +01:00
parent da910fde14
commit f153754dc4
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -98,7 +98,7 @@ func TestGenerator_RandomBytes(t *testing.T) {
}
bl := len(rb)
if int64(bl) != tc.l {
t.Errorf("lenght of provided bytes does not match requested length: got: %d, expected: %d",
t.Errorf("length of provided bytes does not match requested length: got: %d, expected: %d",
bl, tc.l)
}
if bytes.Equal(rb, make([]byte, tc.l)) {