@@ -501,15 +501,14 @@ suite('BackupMainService', () => {
501501 } ) ;
502502
503503 test ( 'should ignore duplicates on Windows and Mac (root workspace)' , async ( ) => {
504- if ( platform . isLinux ) {
505- return ; // TODO:Martin #54483 fix tests
506- }
507504
508505 const workspacePath = path . join ( parentDir , 'Foo.code-workspace' ) ;
506+ const workspacePath1 = path . join ( parentDir , 'FOO.code-workspace' ) ;
507+ const workspacePath2 = path . join ( parentDir , 'foo.code-workspace' ) ;
509508
510509 const workspace1 = await ensureWorkspaceExists ( toWorkspace ( workspacePath ) ) ;
511- const workspace2 = await ensureWorkspaceExists ( toWorkspace ( workspacePath . toUpperCase ( ) ) ) ;
512- const workspace3 = await ensureWorkspaceExists ( toWorkspace ( workspacePath . toLowerCase ( ) ) ) ;
510+ const workspace2 = await ensureWorkspaceExists ( toWorkspace ( workspacePath1 ) ) ;
511+ const workspace3 = await ensureWorkspaceExists ( toWorkspace ( workspacePath2 ) ) ;
513512
514513 const workspacesJson : IBackupWorkspacesFormat = {
515514 rootURIWorkspaces : [ workspace1 , workspace2 , workspace3 ] . map ( toSerializedWorkspace ) ,
@@ -523,9 +522,9 @@ suite('BackupMainService', () => {
523522 const json = < IBackupWorkspacesFormat > JSON . parse ( buffer ) ;
524523 assert . equal ( json . rootURIWorkspaces . length , platform . isLinux ? 3 : 1 ) ;
525524 if ( platform . isLinux ) {
526- assert . deepEqual ( json . rootURIWorkspaces . map ( r => r . configURIPath ) , [ URI . file ( workspacePath ) , URI . file ( workspacePath . toUpperCase ( ) ) , URI . file ( workspacePath . toLowerCase ( ) ) ] ) ;
525+ assert . deepEqual ( json . rootURIWorkspaces . map ( r => r . configURIPath ) , [ URI . file ( workspacePath ) . toString ( ) , URI . file ( workspacePath1 ) . toString ( ) , URI . file ( workspacePath2 ) . toString ( ) ] ) ;
527526 } else {
528- assert . deepEqual ( json . rootURIWorkspaces . map ( r => r . configURIPath ) , [ URI . file ( workspacePath ) ] , 'should return the first duplicated entry' ) ;
527+ assert . deepEqual ( json . rootURIWorkspaces . map ( r => r . configURIPath ) , [ URI . file ( workspacePath ) . toString ( ) ] , 'should return the first duplicated entry' ) ;
529528 }
530529 } ) ;
531530 } ) ;
0 commit comments