@@ -2573,7 +2573,7 @@ public async Task SequenceMultiply() {
25732573 using ( var server = await CreateServerAsync ( PythonVersions . LatestAvailable2X ) ) {
25742574 var analysis = await server . OpenDefaultDocumentAndGetAnalysisAsync ( text ) ;
25752575 analysis . Should ( ) . HaveVariable ( "y" ) . WithDescription ( "tuple" )
2576- . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int]" )
2576+ . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int, int, int ]" )
25772577 . And . HaveVariable ( "oar" ) . WithDescription ( "list[int]" )
25782578 . And . HaveVariable ( "oar2" ) . WithDescription ( "list" ) ;
25792579 }
@@ -2597,7 +2597,7 @@ public async Task SequenceMultiply_2() {
25972597 using ( var server = await CreateServerAsync ( PythonVersions . LatestAvailable2X ) ) {
25982598 var analysis = await server . OpenDefaultDocumentAndGetAnalysisAsync ( text ) ;
25992599 analysis . Should ( ) . HaveVariable ( "y" ) . WithDescription ( "tuple" )
2600- . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int]" )
2600+ . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int, int, int ]" )
26012601 . And . HaveVariable ( "oar" ) . WithDescription ( "list[int]" )
26022602 . And . HaveVariable ( "oar2" ) . WithDescription ( "list" ) ;
26032603 }
@@ -3629,7 +3629,7 @@ def f(z):
36293629 analysis = await server . ChangeDefaultDocumentAndGetAnalysisAsync ( code ) ;
36303630 analysis . Should ( ) . HaveVariable ( "fob" )
36313631 . OfType ( BuiltinTypeId . Tuple )
3632- . WithDescription ( "tuple[int]" ) ;
3632+ . WithDescription ( "tuple[int, int ]" ) ;
36333633
36343634 // dict methods which return a list of key/value tuple
36353635 code = @"x = {}
@@ -3645,8 +3645,8 @@ def f(z):
36453645 print(itm)" ;
36463646
36473647 analysis = await server . ChangeDefaultDocumentAndGetAnalysisAsync ( code ) ;
3648- analysis . Should ( ) . HaveVariable ( "iter" ) . OfType ( BuiltinTypeId . Tuple ) . WithDescription ( "tuple[int]" )
3649- . And . HaveVariable ( "itm" ) . OfType ( BuiltinTypeId . Tuple ) . WithDescription ( "tuple[int]" ) ;
3648+ analysis . Should ( ) . HaveVariable ( "iter" ) . OfType ( BuiltinTypeId . Tuple ) . WithDescription ( "tuple[int, int ]" )
3649+ . And . HaveVariable ( "itm" ) . OfType ( BuiltinTypeId . Tuple ) . WithDescription ( "tuple[int, int ]" ) ;
36503650 }
36513651 }
36523652/*
@@ -3866,7 +3866,7 @@ def f(self):
38663866a = C()
38673867b = a.f
38683868 " ) ;
3869- analysis . Should ( ) . HaveVariable ( "b" ) . WithDescription ( "method f of test- module.C objects" ) ;
3869+ analysis . Should ( ) . HaveVariable ( "b" ) . WithDescription ( "method f of module.C objects" ) ;
38703870
38713871 await server . ChangeDefaultDocumentAndGetAnalysisAsync ( @"
38723872class C(object):
@@ -3876,7 +3876,7 @@ def f(self):
38763876a = C()
38773877b = a.f
38783878 " ) ;
3879- analysis . Should ( ) . HaveVariable ( "b" ) . WithDescription ( "method f of test- module.C objects" ) ;
3879+ analysis . Should ( ) . HaveVariable ( "b" ) . WithDescription ( "method f of module.C objects" ) ;
38803880 }
38813881 }
38823882
@@ -5332,11 +5332,9 @@ public async Task CancelAnalysis() {
53325332 var analysisCompleteTask = Task . CompletedTask ;
53335333 try {
53345334 server = await CreateServerAsync ( configuration ) ;
5335- await Task . WhenAny ( Task . Delay ( 15000 ) , Task . Run ( async ( ) => {
5336- for ( var i = 0 ; i < files . Length ; i ++ ) {
5337- await server . SendDidOpenTextDocument ( new Uri ( files [ i ] ) , contentTasks [ i ] . Result ) ;
5338- }
5339- } ) ) ;
5335+ for ( var i = 0 ; i < files . Length && server . AnalysisQueue . Count < 50 ; i ++ ) {
5336+ await server . SendDidOpenTextDocument ( new Uri ( files [ i ] ) , contentTasks [ i ] . Result ) ;
5337+ }
53405338
53415339 server . AnalysisQueue . Count . Should ( ) . NotBe ( 0 ) ;
53425340 } finally {
0 commit comments