Improved benchmark

This commit is contained in:
Eduard Urbach 2023-07-09 11:16:08 +02:00
parent a21ea3a6ef
commit 38c33f97cc
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -23,10 +23,7 @@ func BenchmarkGet(b *testing.B) {
b.RunParallel(func(pb *testing.PB) { b.RunParallel(func(pb *testing.PB) {
for pb.Next() { for pb.Next() {
user, err := users.Get("1") users.Get("1")
assert.Nil(b, err)
assert.NotNil(b, user)
assert.Equal(b, user.Name, "User 1")
} }
}) })