From a1ad1e1d35443a34b188ba47a2c279b3beeeb2af Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Fri, 27 Jan 2023 15:22:34 -0500 Subject: [PATCH] Cleanup for whitespace and require.NoError in test --- Dockerfile | 2 +- utils/json_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b04beed..e6ddee8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/utils/json_test.go b/utils/json_test.go index f44ed47d..bbdc57dd 100644 --- a/utils/json_test.go +++ b/utils/json_test.go @@ -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) } }