@@ -64,22 +64,47 @@ protected void RunPowerShellTest(params string[] scripts)
64
64
65
65
protected SqlManagementClient GetSqlClient ( )
66
66
{
67
- return TestBase . GetServiceClient < SqlManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
67
+ SqlManagementClient client = TestBase . GetServiceClient < SqlManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
68
+ if ( HttpMockServer . Mode == HttpRecorderMode . Playback )
69
+ {
70
+ client . LongRunningOperationInitialTimeout = 0 ;
71
+ client . LongRunningOperationRetryTimeout = 0 ;
72
+ }
73
+ return client ;
68
74
}
69
75
70
76
protected StorageManagementClient GetStorageClient ( )
71
77
{
72
- return TestBase . GetServiceClient < StorageManagementClient > ( new RDFETestEnvironmentFactory ( ) ) ;
78
+ StorageManagementClient client = TestBase . GetServiceClient < StorageManagementClient > ( new RDFETestEnvironmentFactory ( ) ) ;
79
+ if ( HttpMockServer . Mode == HttpRecorderMode . Playback )
80
+ {
81
+ client . LongRunningOperationInitialTimeout = 0 ;
82
+ client . LongRunningOperationRetryTimeout = 0 ;
83
+ }
84
+ return client ;
73
85
}
74
86
75
87
protected ResourceManagementClient GetResourcesClient ( )
76
88
{
77
- return TestBase . GetServiceClient < ResourceManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
89
+ ResourceManagementClient client = TestBase . GetServiceClient < ResourceManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
90
+ if ( HttpMockServer . Mode == HttpRecorderMode . Playback )
91
+ {
92
+ client . LongRunningOperationInitialTimeout = 0 ;
93
+ client . LongRunningOperationRetryTimeout = 0 ;
94
+ }
95
+ return client ;
78
96
}
79
97
80
98
private AuthorizationManagementClient GetAuthorizationManagementClient ( )
81
- {
82
- return TestBase . GetServiceClient < AuthorizationManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
99
+ {
100
+ AuthorizationManagementClient client = TestBase . GetServiceClient < AuthorizationManagementClient > ( new CSMTestEnvironmentFactory ( ) ) ;
101
+ if ( HttpMockServer . Mode == HttpRecorderMode . Playback )
102
+ {
103
+ client . LongRunningOperationInitialTimeout = 0 ;
104
+ client . LongRunningOperationRetryTimeout = 0 ;
105
+ }
106
+ return client ;
107
+
83
108
}
84
109
}
85
110
}
0 commit comments