Skip to content

Commit

Permalink
#151 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Necoro committed Feb 25, 2021
1 parent 5ec54e7 commit f9bff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func TestDefaultRSSTranslator_Translate(t *testing.T) {
// workaround: move the actual extensions through a round of json marshalling so that we get the same
for _, i := range actual.Items {
if len(i.Extensions) > 0 {
b, _ := json.Marshal(i.Extensions)
json.Unmarshal(b, &i.Extensions)
b, _ := jsonEncoding.Marshal(i.Extensions)
jsonEncoding.Unmarshal(b, &i.Extensions)
}
}

Expand Down

0 comments on commit f9bff26

Please sign in to comment.