Skip to content

Commit

Permalink
Code review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
  • Loading branch information
priyawadhwa committed Jun 6, 2022
1 parent 59513f5 commit 0d52873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/sharding/sharding.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func TreeID(entryID string) (int64, error) {
}
i, err := strconv.ParseInt(tid, 16, 64)
if err != nil {
return 0, fmt.Errorf("could not convert treeID %v to int64: %v", tid, err)
return 0, fmt.Errorf("could not convert treeID %v to int64: %w", tid, err)
}
return i, nil
}
2 changes: 1 addition & 1 deletion tests/sharding-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ ENTRY_ID_1=$HEX_INITIAL_TREE_ID$UUID1
ENTRY_ID_2=$HEX_INITIAL_SHARD_ID$UUID2

# -f makes sure we exit on failure
NUM_ELEMENTS=$(curl -f http://localhost:3000/api/v1/log/entries/retrieve -H "Content-Type: application/json" -d "{ \"entryUUIDs\": [\"$ENTRY_ID_1\", \"$ENTRY_ID_2\"]}" | jq '. | length')
NUM_ELEMENTS=$(curl -f http://localhost:3000/api/v1/log/entries/retrieve -H "Content-Type: application/json" -H "Accept: application/json" -d "{ \"entryUUIDs\": [\"$ENTRY_ID_1\", \"$ENTRY_ID_2\"]}" | jq '. | length')
stringsMatch $NUM_ELEMENTS "2"

echo "Test passed successfully :)"

0 comments on commit 0d52873

Please sign in to comment.