-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix the random test #5694
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: jiefenghuang <[email protected]>
b50dca0
to
37958db
Compare
Signed-off-by: jiefenghuang <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5694 +/- ##
===========================================
- Coverage 52.99% 21.59% -31.40%
===========================================
Files 132 29 -103
Lines 39720 19227 -20493
===========================================
- Hits 21049 4153 -16896
+ Misses 16283 14583 -1700
+ Partials 2388 491 -1897 ☔ View full report in Codecov by Sentry. |
@@ -136,6 +136,7 @@ func (m *fsMachine) Init(t *rapid.T) { | |||
} | |||
_ = os.Remove(settingPath) | |||
m.meta = NewClient(metaURL, testConfig()) | |||
m.meta.Reset() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -1386,7 +1398,7 @@ func cleanupSlices(ss []tSlice) []tSlice { | |||
func (m *fsMachine) SetXAttr(t *rapid.T) { | |||
inode := m.pickNode(t) | |||
name := rapid.StringN(1, 200, XATTR_NAME_MAX+1).Draw(t, "name") | |||
value := rapid.SliceOfN(rapid.Byte(), 0, XATTR_SIZE_MAX+1).Draw(t, "value") | |||
value := rapid.SliceOfN(rapid.Byte(), 1, XATTR_SIZE_MAX+1).Draw(t, "value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0
@@ -1926,11 +1938,11 @@ func (m *fsMachine) flock(inode Ino, owner uint64, typ uint32) syscall.Errno { | |||
func (m *fsMachine) Flock(t *rapid.T) { | |||
inode := m.pickNode(t) | |||
owner := rapid.Uint64().Draw(t, "owner") | |||
typ := rapid.Uint32Range(0, 3).Draw(t, "typ") | |||
typ := rapid.Uint32Range(1, 2).Draw(t, "typ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(0,2)
close #5679
close #5659