Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Jun 28, 2023
1 parent 41c5c60 commit a8ac2f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions share/eds/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ func BenchmarkStore(b *testing.B) {
err = edsStore.Start(ctx)
require.NoError(b, err)

//BenchmarkStore/bench_put-10 10 3231859283 ns/op (~3sec)
// BenchmarkStore/bench_put-10 10 3231859283 ns/op (~3sec)
b.Run("bench put 128", func(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
// pause the timer for initialising test data
// pause the timer for initializing test data
b.StopTimer()
eds := share.RandEDS(b, 128)
dah := da.NewDataAvailabilityHeader(eds)

Check failure on line 273 in share/eds/store_test.go

View workflow job for this annotation

GitHub Actions / go-ci / Unit Tests Coverage

undefined: share.RandEDS

Check failure on line 273 in share/eds/store_test.go

View workflow job for this annotation

GitHub Actions / go-ci / Run Unit Tests with Race Detector

undefined: share.RandEDS
Expand All @@ -278,15 +278,15 @@ func BenchmarkStore(b *testing.B) {
}
})

//BenchmarkStore/bench_read-10 14 78970661 ns/op (~70ms)
// BenchmarkStore/bench_read-10 14 78970661 ns/op (~70ms)
b.Run("bench read 128", func(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
// pause the timer for initialising test data
// pause the timer for initializing test data
b.StopTimer()
eds := share.RandEDS(b, 128)
dah := da.NewDataAvailabilityHeader(eds)

Check failure on line 288 in share/eds/store_test.go

View workflow job for this annotation

GitHub Actions / go-ci / Unit Tests Coverage

undefined: share.RandEDS

Check failure on line 288 in share/eds/store_test.go

View workflow job for this annotation

GitHub Actions / go-ci / Run Unit Tests with Race Detector

undefined: share.RandEDS
edsStore.Put(ctx, dah.Hash(), eds)
_ = edsStore.Put(ctx, dah.Hash(), eds)
b.StartTimer()

_, err := edsStore.Get(ctx, dah.Hash())
Expand Down

0 comments on commit a8ac2f7

Please sign in to comment.