@@ -46,6 +46,7 @@ import {
4646import cp = require( 'child_process' ) ;
4747import os = require( 'os' ) ;
4848import { MockExtensionContext } from '../mocks/MockContext' ;
49+ import { affectedByIssue832 } from './testutils' ;
4950
5051const testAll = ( isModuleMode : boolean ) => {
5152 const dummyCancellationSource = new vscode . CancellationTokenSource ( ) ;
@@ -741,7 +742,10 @@ It returns the number of bytes written and any write error encountered.
741742 assert . equal ( interfaces [ 0 ] . name , 'circle' ) ;
742743 } ) ;
743744
744- test ( 'Test listPackages' , async ( ) => {
745+ test ( 'Test listPackages' , async function ( ) {
746+ if ( affectedByIssue832 ( ) ) {
747+ this . skip ( ) ; // timeout on windows
748+ }
745749 const uri = vscode . Uri . file ( path . join ( fixturePath , 'baseTest' , 'test.go' ) ) ;
746750 const document = await vscode . workspace . openTextDocument ( uri ) ;
747751 await vscode . window . showTextDocument ( document ) ;
@@ -793,7 +797,10 @@ It returns the number of bytes written and any write error encountered.
793797 } ) ;
794798 } ) ;
795799
796- test ( 'Workspace Symbols' , ( ) => {
800+ test ( 'Workspace Symbols' , function ( ) {
801+ if ( affectedByIssue832 ( ) ) {
802+ this . skip ( ) ; // frequent timeout on windows
803+ }
797804 const workspacePath = path . join ( fixturePath , 'vendoring' ) ;
798805 const configWithoutIgnoringFolders = Object . create ( getGoConfig ( ) , {
799806 gotoSymbol : {
@@ -861,7 +868,11 @@ It returns the number of bytes written and any write error encountered.
861868 return Promise . all ( [ withIgnoringFolders , withoutIgnoringFolders , withIncludingGoroot , withoutIncludingGoroot ] ) ;
862869 } ) ;
863870
864- test ( 'Test Completion' , async ( ) => {
871+ test ( 'Test Completion' , async function ( ) {
872+ if ( affectedByIssue832 ( ) ) {
873+ this . skip ( ) ; // timeout on windows
874+ }
875+
865876 const printlnDoc = `Println formats using the default formats for its operands and writes to
866877standard output. Spaces are always added between operands and a newline is
867878appended. It returns the number of bytes written and any write error
@@ -911,7 +922,10 @@ encountered.
911922 await Promise . all ( promises ) ;
912923 } ) ;
913924
914- test ( 'Test Completion Snippets For Functions' , async ( ) => {
925+ test ( 'Test Completion Snippets For Functions' , async function ( ) {
926+ if ( affectedByIssue832 ( ) ) {
927+ this . skip ( ) ; // timeout on windows
928+ }
915929 const provider = new GoCompletionItemProvider ( ) ;
916930 const uri = vscode . Uri . file ( path . join ( fixturePath , 'completions' , 'snippets.go' ) ) ;
917931 const baseConfig = getGoConfig ( ) ;
@@ -1176,7 +1190,7 @@ encountered.
11761190 } ) ;
11771191
11781192 test ( 'Test Completion on unimported packages' , async function ( ) {
1179- if ( isModuleMode ) {
1193+ if ( isModuleMode || affectedByIssue832 ( ) ) {
11801194 this . skip ( ) ;
11811195 }
11821196 // gocode-gomod does not handle unimported package completion.
@@ -1212,7 +1226,10 @@ encountered.
12121226 await Promise . all ( promises ) ;
12131227 } ) ;
12141228
1215- test ( 'Test Completion on unimported packages (multiple)' , async ( ) => {
1229+ test ( 'Test Completion on unimported packages (multiple)' , async function ( ) {
1230+ if ( affectedByIssue832 ( ) ) {
1231+ this . skip ( ) ;
1232+ }
12161233 const config = Object . create ( getGoConfig ( ) , {
12171234 gocodeFlags : { value : [ '-builtin' ] }
12181235 } ) ;
0 commit comments