Skip to content

Commit d8ef063

Browse files
committed
Fixed Tests
1 parent 013a451 commit d8ef063

File tree

3 files changed

+13
-43
lines changed

3 files changed

+13
-43
lines changed

src/HotChocolate/Core/test/Types.Mutations.Tests/AnnotationBasedMutations.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ public async Task SimpleMutation_Override_Payload()
436436
schema.MatchSnapshot();
437437
}
438438

439+
#if NET7_0_OR_GREATER
439440
[Fact]
440441
public async Task SimpleMutation_Override_Payload_WithError()
441442
{
@@ -450,6 +451,7 @@ public async Task SimpleMutation_Override_Payload_WithError()
450451

451452
schema.MatchSnapshot();
452453
}
454+
#endif
453455

454456
[Fact]
455457
public async Task SimpleMutation_Override_Input()
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
{
2-
"Kind": "SingleResult",
3-
"RequestIndex": null,
4-
"VariableIndex": null,
5-
"Label": null,
6-
"Path": null,
7-
"Data": {
1+
{
2+
"data": {
83
"__typename": "Query"
94
},
10-
"Items": null,
11-
"Errors": null,
12-
"Extensions": {
5+
"extensions": {
136
"persistedDocument": true
14-
},
15-
"Incremental": null,
16-
"ContextData": null,
17-
"HasNext": null,
18-
"IsDataSet": true
7+
}
198
}
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,11 @@
1-
{
2-
"Kind": "SingleResult",
3-
"RequestIndex": null,
4-
"VariableIndex": null,
5-
"Label": null,
6-
"Path": null,
7-
"Data": null,
8-
"Items": null,
9-
"Errors": [
1+
{
2+
"errors": [
103
{
11-
"Message": "The specified persisted operation key is invalid.",
12-
"Code": "HC0020",
13-
"Path": null,
14-
"Locations": null,
15-
"Extensions": {
4+
"message": "The specified persisted operation key is invalid.",
5+
"extensions": {
166
"code": "HC0020",
17-
"requestedKey": {
18-
"IsEmpty": false,
19-
"Value": "does_not_exist"
20-
}
21-
},
22-
"Exception": null
7+
"requestedKey": "does_not_exist"
8+
}
239
}
24-
],
25-
"Extensions": null,
26-
"Incremental": null,
27-
"ContextData": {
28-
"HotChocolate.Execution.Transport.HttpStatusCode": 400
29-
},
30-
"HasNext": null,
31-
"IsDataSet": false
10+
]
3211
}

0 commit comments

Comments
 (0)