forked from cerc-io/laconicd-deprecated
Cleanup for whitespace and require.NoError in test
This commit is contained in:
parent
ff74a447fe
commit
a1ad1e1d35
@ -24,7 +24,8 @@ func TestAndValidateCIDGeneration(t *testing.T) {
|
|||||||
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
deprecatedAndCorrect, _ := CIDFromJSONBytes([]byte(tc.content))
|
deprecatedAndCorrect, _ := CIDFromJSONBytes([]byte(tc.content))
|
||||||
newImpl, _ := CIDFromJSONBytesUsingIpldPrime([]byte(tc.content))
|
newImpl, err := CIDFromJSONBytesUsingIpldPrime([]byte(tc.content))
|
||||||
|
require.NoError(t, err)
|
||||||
require.Equal(t, deprecatedAndCorrect, newImpl, tc.name)
|
require.Equal(t, deprecatedAndCorrect, newImpl, tc.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user