Skip to content

Commit

Permalink
Fixed Snapshots (ChilliCream#4557)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Dec 14, 2021
1 parent 0549faa commit f048c8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using GreenDonut;
using HotChocolate.Fetching;
Expand All @@ -14,16 +15,20 @@ public void Schedule_OneAction_DispatchesImmediately()
// arrange
var hasBeenDispatched = false;
var scheduler = new AutoBatchScheduler();
Func<ValueTask> dispatch = () =>
var wait = new AutoResetEvent(false);

ValueTask Dispatch()
{
hasBeenDispatched = true;
wait.Set();
return default;
};
}

// act
scheduler.Schedule(dispatch);
scheduler.Schedule(Dispatch);

// assert
wait.WaitOne(TimeSpan.FromSeconds(5));
Assert.True(hasBeenDispatched);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ input ComparableNullableOfInt64OperationFilterInput {
eq: Long
neq: Long
in: [Long]
nin: [Long]
gt: Long
ngt: Long
gte: Long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,5 @@ enum SortEnumType {
"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`."
directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT

"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values."
directive @deprecated("Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark)." reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE

"Directs the executor to include this field or fragment only when the `if` argument is true."
directive @include("Included when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

"Directs the executor to skip this field or fragment when the `if` argument is true."
directive @skip("Skipped when true." if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`."
directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean) on FIELD
directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! = 0 "Streamed when true." if: Boolean) on FIELD

0 comments on commit f048c8d

Please sign in to comment.