File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { PurgeInstanceCriteria } from "../orchestration/orchestration-purge-crit
2020import { callWithMetadata , MetadataGenerator } from "../utils/grpc-helper.util" ;
2121import { OrchestrationQuery , ListInstanceIdsOptions , DEFAULT_PAGE_SIZE } from "../orchestration/orchestration-query" ;
2222import { Page , AsyncPageable , createAsyncPageable } from "../orchestration/page" ;
23+ import { FailureDetails } from "../task/failure-details" ;
2324
2425// Re-export MetadataGenerator for backward compatibility
2526export { MetadataGenerator } from "../utils/grpc-helper.util" ;
@@ -604,7 +605,6 @@ export class TaskHubGrpcClient {
604605 let failureDetails ;
605606 const protoFailureDetails = protoState . getFailuredetails ( ) ;
606607 if ( protoFailureDetails ) {
607- const { FailureDetails } = require ( "../task/failure-details" ) ;
608608 failureDetails = new FailureDetails (
609609 protoFailureDetails . getErrortype ( ) ,
610610 protoFailureDetails . getErrormessage ( ) ,
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
33
4- import { Page , createAsyncPageable , AsyncPageable } from "../src/orchestration/page" ;
4+ import { Page , createAsyncPageable } from "../src/orchestration/page" ;
5+ import { FailureDetails } from "../src/task/failure-details" ;
56import {
67 OrchestrationQuery ,
78 ListInstanceIdsOptions ,
@@ -379,7 +380,6 @@ describe("OrchestrationState", () => {
379380 } ) ;
380381
381382 it ( "should correctly indicate failed status with failure details" , ( ) => {
382- const { FailureDetails } = require ( "../src/task/failure-details" ) ;
383383 const failureDetails = new FailureDetails ( "Error" , "Something went wrong" , "stack trace" ) ;
384384
385385 const state = new OrchestrationState (
You can’t perform that action at this time.
0 commit comments