Skip to content

Commit

Permalink
ignore location field in defer test errors (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarker2 authored Jun 25, 2024
1 parent 7dbfe88 commit 4b43280
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ 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"],
"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"],
"errors" to (combinedDeferResultMap["errors"] as List<Map<String, Any>>)?.map { errorMap ->
errorMap.filterKeys { it != "locations" }
},
"extensions" to combinedDeferResultMap["extensions"],
),
mode = JSONCompareMode.LENIENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import graphql.nadel.NadelExecutionHints
import graphql.nadel.tests.next.NadelIntegrationTest
import kotlin.test.Ignore

@Ignore
open class DeferWithErrorTest : NadelIntegrationTest(
query = """
query {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package graphql.nadel.tests.next.fixtures.defer

import graphql.nadel.NadelExecutionHints
import graphql.nadel.tests.next.NadelIntegrationTest
import kotlin.test.Ignore

@Ignore
open class MultipleDeferWithDifferentServiceCalls : NadelIntegrationTest(
query = """
query {
Expand Down

0 comments on commit 4b43280

Please sign in to comment.