@@ -120,7 +120,7 @@ func BenchmarkPersisterGetRandomKeys(b *testing.B) {
120120 b .ResetTimer ()
121121 for i := 0 ; i < numRandomKeys ; i ++ {
122122 _ , err = singleDB .Get ([]byte (missingKeys [i ]))
123- require .Equal (b , common .ErrInvalidConfig , err )
123+ require .Equal (b , common .ErrKeyNotFound , err )
124124 }
125125 })
126126
@@ -137,7 +137,7 @@ func BenchmarkPersisterGetRandomKeys(b *testing.B) {
137137 b .ResetTimer ()
138138 for i := 0 ; i < numRandomKeys ; i ++ {
139139 _ , err = singleDB .Get ([]byte (missingKeys [i ]))
140- require .Equal (b , common .ErrInvalidConfig , err )
140+ require .Equal (b , common .ErrKeyNotFound , err )
141141 }
142142 })
143143
@@ -154,7 +154,7 @@ func BenchmarkPersisterGetRandomKeys(b *testing.B) {
154154 b .ResetTimer ()
155155 for i := 0 ; i < numRandomKeys ; i ++ {
156156 _ , err = singleDB .Get ([]byte (missingKeys [i ]))
157- require .Equal (b , common .ErrInvalidConfig , err )
157+ require .Equal (b , common .ErrKeyNotFound , err )
158158 }
159159 })
160160
@@ -171,7 +171,7 @@ func BenchmarkPersisterGetRandomKeys(b *testing.B) {
171171 b .ResetTimer ()
172172 for i := 0 ; i < numRandomKeys ; i ++ {
173173 _ , err = singleDB .Get ([]byte (missingKeys [i ]))
174- require .Equal (b , common .ErrInvalidConfig , err )
174+ require .Equal (b , common .ErrKeyNotFound , err )
175175 }
176176 })
177177}
0 commit comments