Skip to content

Commit

Permalink
fix error locations bug (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarker2 authored Jun 25, 2024
1 parent 4b43280 commit 66f9346
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ abstract class NadelIntegrationTest(
// Maybe this won't hold out longer term, but e.g. it's ok for the deferred errors to add a path
assertJsonEquals(
expected = mapOf(
"errors" to (noDeferResultMap["errors"] as List<Map<String, Any>>)?.map { errorMap ->
"errors" to (noDeferResultMap["errors"] as? List<Map<String, Any>>)?.map { errorMap ->
errorMap.filterKeys { it != "locations" }
},
"extensions" to noDeferResultMap["extensions"],
),
actual = mapOf(
"errors" to (combinedDeferResultMap["errors"] as List<Map<String, Any>>)?.map { errorMap ->
"errors" to (combinedDeferResultMap["errors"] as? List<Map<String, Any>>)?.map { errorMap ->
errorMap.filterKeys { it != "locations" }
},
"extensions" to combinedDeferResultMap["extensions"],
Expand Down

0 comments on commit 66f9346

Please sign in to comment.