File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,20 @@ [I] public async Task SqlSearchStatusResponse() => await Assert<SqlSearchStatusR
114
114
{
115
115
r . ShouldBeValid ( ) ;
116
116
r . Id . Should ( ) . NotBeNullOrEmpty ( ) ;
117
- r . IsPartial . Should ( ) . BeTrue ( ) ;
118
- r . IsRunning . Should ( ) . BeTrue ( ) ;
117
+
118
+ if ( r . CompletionStatus . HasValue )
119
+ {
120
+ r . IsPartial . Should ( ) . BeFalse ( ) ;
121
+ r . IsRunning . Should ( ) . BeFalse ( ) ;
122
+ }
123
+ else
124
+ {
125
+ r . IsPartial . Should ( ) . BeTrue ( ) ;
126
+ r . IsRunning . Should ( ) . BeTrue ( ) ;
127
+ r . StartTimeInMillis . Should ( ) . BeGreaterThan ( 0 ) ;
128
+ }
129
+
119
130
r . ExpirationTimeInMillis . Should ( ) . BeGreaterThan ( 0 ) ;
120
- r . StartTimeInMillis . Should ( ) . BeGreaterThan ( 0 ) ;
121
131
} ) ;
122
132
123
133
[ I ] public async Task SqlGetResponse ( ) => await Assert < SqlGetResponse > ( GetStep , r =>
You can’t perform that action at this time.
0 commit comments