Browse Source

Fixed unit test

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
7b6287c7a1
  1. 5
      store/store_test.go

5
store/store_test.go

@ -33,7 +33,10 @@ func TestGenerateRandomString(t *testing.T) {
for _, tc := range tt {
t.Run(tc.name, func(t *testing.T) {
rnd := generateRandomString(tc.length)
rnd, err := generateRandomString(tc.length)
if err != nil {
t.Fatalf("could not generate random string: %v", err)
}
if len(rnd) != int(tc.length) {
t.Fatalf("length of %s random string is %d not the expected one: %d", tc.name, len(rnd), tc.length)
}

Loading…
Cancel
Save