File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
integration-tests/testkit Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -779,20 +779,24 @@ export function initSeed() {
779
779
const check = async ( ) => {
780
780
const statsResult = await readOperationsStats (
781
781
{
782
- organizationSlug : organization . slug ,
783
- projectSlug : project . slug ,
784
- targetSlug : ( opts ?. target ?? target ) . slug ,
785
- period : {
786
- from,
787
- to,
782
+ bySelector : {
783
+ organizationSlug : organization . slug ,
784
+ projectSlug : project . slug ,
785
+ targetSlug : ( opts ?. target ?? target ) . slug ,
788
786
} ,
789
787
} ,
788
+ {
789
+ from,
790
+ to,
791
+ } ,
792
+ { } ,
790
793
ownerToken ,
791
794
) . then ( r => r . expectNoGraphQLErrors ( ) ) ;
792
- const totalRequests = statsResult . operationsStats . operations . nodes . reduce (
793
- ( total , node ) => total + node . count ,
794
- 0 ,
795
- ) ;
795
+ const totalRequests =
796
+ statsResult . target ?. operationsStats . operations . edges . reduce (
797
+ ( total , edge ) => total + edge . node . count ,
798
+ 0 ,
799
+ ) ;
796
800
return totalRequests == n ;
797
801
} ;
798
802
You can’t perform that action at this time.
0 commit comments