File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 44
55namespace Ydb . Sdk . Tests . Sys ;
66
7- [ Trait ( "Category" , "Integration" ) ]
87public class QueryLogTests : IClassFixture < QueryClientFixture >
98{
109 private readonly QueryClient _queryClient ;
@@ -15,15 +14,15 @@ public QueryLogTests(QueryClientFixture queryClientFixture)
1514 }
1615
1716 [ Fact ]
18- public async Task QueryLogPidCheck ( )
17+ public async Task QuerySessionPidTest ( )
1918 {
20- const string sql = @"SELECT * FROM `.sys/query_sessions`" ;
19+ const string sql = @"SELECT * FROM `.sys/query_sessions` LIMIT 1 " ;
2120 var expectedPid = Environment . ProcessId . ToString ( ) ;
2221
2322 await _queryClient . Exec ( sql ) ;
24- var selectAllQueries = await _queryClient . ReadAllRows ( sql ) ;
23+ var sessionRow = await _queryClient . ReadRow ( sql ) ;
2524
26- Assert . NotEmpty ( selectAllQueries ) ;
27- Assert . Equal ( selectAllQueries [ 0 ] [ "ClientPID" ] . GetOptionalUtf8 ( ) , expectedPid ) ;
25+ Assert . NotNull ( sessionRow ) ;
26+ Assert . Equal ( sessionRow [ "ClientPID" ] . GetOptionalUtf8 ( ) , expectedPid ) ;
2827 }
2928}
You can’t perform that action at this time.
0 commit comments