Cleanup for whitespace and require.NoError in test

This commit is contained in:
Michael Shaw committed 2023-01-27 15:22:34 -05:00
1 parent ff74a447fe
commit a1ad1e1d35
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ WORKDIR /go/src/github.com/cerc-io/laconicd
# Install dependencies
RUN apk add --update $PACKAGES
RUN apk add linux-headers
RUN apk add linux-headers
# Add source files
COPY . .
+2 -1
View File
@@ -24,7 +24,8 @@ func TestAndValidateCIDGeneration(t *testing.T) {
for _, tc := range testCases {
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)
}
}