-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(store): Fix the TestFileStreamingService unit test. #14305
Conversation
@@ -116,7 +116,8 @@ func TestFileStreamingService(t *testing.T) { | |||
defer os.RemoveAll(testDir) | |||
|
|||
testKeys := []types.StoreKey{mockStoreKey1, mockStoreKey2} | |||
testStreamingService, err := NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, log.NewNopLogger(), true, false, false) | |||
var err error | |||
testStreamingService, err = NewStreamingService(testDir, testPrefix, testKeys, testMarshaller, log.NewNopLogger(), true, false, false) | |||
require.Nil(t, err) |
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.
require.Nil(t, err) | |
require.NoError(t, err) |
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.
I agree that it should be NoError
, but there are a whole lot of other things about this test that should also be fixed, and I didn't want to get lost in all of it. E.g. require.Nil
is used against errors in many places.
This reverts commit 1f88277.
…osmos-sdk into dwedul/14302-fix-streaming-test
(cherry picked from commit aba4e6e)
(cherry picked from commit aba4e6e) # Conflicts: # store/streaming/file/service_test.go
) (#14309) Co-authored-by: Daniel Wedul <github@wedul.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
…mos#14305) (cosmos#14309) Co-authored-by: Daniel Wedul <github@wedul.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
) (#14308) Co-authored-by: Daniel Wedul <github@wedul.com>
…mos#14305) (cosmos#14309) Co-authored-by: Daniel Wedul <github@wedul.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
Description
Closes: #14302
Fix the
TestFileStreamingService
unit test.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
addedN/A!
to the type prefix if API or client breaking changefollowed the guidelines for building modulesN/Aincluded the necessary unit and integration testsN/ACHANGELOG.md
included comments for documenting Go codeN/Aupdated the relevant documentation or specificationN/AReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change