aboutsummaryrefslogtreecommitdiffstats
path: root/models/unittest/fixtures_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/unittest/fixtures_test.go')
-rw-r--r--models/unittest/fixtures_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go
index a4c55f4e55..8a4c5f1793 100644
--- a/models/unittest/fixtures_test.go
+++ b/models/unittest/fixtures_test.go
@@ -99,7 +99,7 @@ func BenchmarkFixturesLoader(b *testing.B) {
// BenchmarkFixturesLoader/Internal
// BenchmarkFixturesLoader/Internal-12 1746 670457 ns/op
b.Run("Internal", func(b *testing.B) {
- for i := 0; i < b.N; i++ {
+ for b.Loop() {
require.NoError(b, loaderInternal.Load())
}
})
@@ -107,7 +107,7 @@ func BenchmarkFixturesLoader(b *testing.B) {
if loaderVendor == nil {
b.Skip()
}
- for i := 0; i < b.N; i++ {
+ for b.Loop() {
require.NoError(b, loaderVendor.Load())
}
})