Skip to content

Commit fd908a5

Browse files
authored
fix error message of test for bucket wrapper size (alibaba#178)
1 parent 934f247 commit fd908a5

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

core/stat/base/leap_array_test.go

+2-12
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,15 @@ const (
2020
)
2121

2222
func Test_bucketWrapper_Size(t *testing.T) {
23-
type Obj struct {
24-
a1 int32 // 4bytes
25-
a2 int32
26-
a3 int32
27-
a4 int32
28-
a5 int32
29-
a6 int32
30-
a7 int32
31-
a8 int32
32-
}
3323
ww := &BucketWrap{
3424
BucketStart: util.CurrentTimeMillis(),
3525
Value: atomic.Value{},
3626
}
3727
if unsafe.Sizeof(*ww) != 24 {
38-
t.Errorf("the size of BucketWrap is not equal 20.\n")
28+
t.Errorf("the size of BucketWrap is not equal 24.\n")
3929
}
4030
if unsafe.Sizeof(ww) != 8 {
41-
t.Errorf("the size of BucketWrap is not equal 20.\n")
31+
t.Errorf("the size of BucketWrap is not equal 24.\n")
4232
}
4333
}
4434

0 commit comments

Comments
 (0)