-
Notifications
You must be signed in to change notification settings - Fork 38
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
Org-wide linter #2943
base: master
Are you sure you want to change the base?
Org-wide linter #2943
Changes from 1 commit
b4f8062
6a4d903
b87f9dd
297e544
0ddfb96
d98abd2
7eec572
660d542
4f4cbb1
939bb4a
656adb5
02aed6f
e003a68
b948d79
5daae82
428dfe1
d411599
7468c36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ func TestDB_Exists(t *testing.T) { | |
require.False(t, gotObj) | ||
require.ErrorIs(t, err, meta.ErrObjectIsExpired) | ||
|
||
gotObj, err = metaExists(db, object.AddressOf(nonExp)) | ||
gotObj, _ = metaExists(db, object.AddressOf(nonExp)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This better be checked for |
||
require.True(t, gotObj) | ||
}) | ||
}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ func testForestTreeDrop(t *testing.T, s Forest) { | |
require.NoError(t, err) | ||
} | ||
} | ||
list, err := s.TreeList(cid) | ||
list, _ := s.TreeList(cid) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
require.NotEmpty(t, list) | ||
|
||
require.NoError(t, s.TreeDrop(cid, "")) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,9 @@ func TestWriteCacheObjectLoss(t *testing.T) { | |
|
||
objects := make([]*objectSDK.Object, objCount) | ||
for i := range objects { | ||
size := smallSize | ||
size := smallSize / 2 | ||
// if i%2 == 0 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop commented out code? Why is it here? |
||
size = smallSize / 2 | ||
//size = smallSize / 2 | ||
// } | ||
data := make([]byte, size) | ||
//nolint:staticcheck | ||
|
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.
Wow. It looks like a test bug in fact.
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.
Here, I added
err
torequire.Error
and everything all right.neofs-node/pkg/local_object_storage/metabase/delete_test.go
Lines 63 to 65 in b135a0e
But there is
err == nil
andok
is false, i think it is wrong.neofs-node/pkg/local_object_storage/metabase/delete_test.go
Lines 67 to 69 in b135a0e