Skip to content

Commit 3be3eb2

Browse files
committed
Update Stats() to return Length in testFragment
Updated the Stats method in the testFragment struct to return the Length as part of the storage stats. This change enables a more accurate representation of the fragment's statistics, enhancing robust testing.
1 parent 82e4433 commit 3be3eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cluster/partitions/partition_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type testFragment struct {
2828
}
2929

3030
func (tf *testFragment) Stats() storage.Stats {
31-
return storage.Stats{}
31+
return storage.Stats{Length: tf.length}
3232
}
3333

3434
func (tf *testFragment) Name() string {

0 commit comments

Comments
 (0)