File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/test/awsService/ec2 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44 */
55import * as vscode from 'vscode'
66import assert from 'assert'
7+ import nodefs from 'fs'
78import * as sinon from 'sinon'
89import * as path from 'path'
910import * as os from 'os'
10- import { stat } from 'fs/promises'
1111import { SshKeyPair } from '../../../awsService/ec2/sshKeyPair'
1212import { createTestWorkspaceFolder , installFakeClock } from '../../testUtil'
1313import { InstalledClock } from '@sinonjs/fake-timers'
@@ -54,7 +54,7 @@ describe('SshKeyUtility', async function () {
5454
5555 it ( 'sets permission of the file to read/write owner' , async function ( ) {
5656 if ( ! globals . isWeb && os . platform ( ) !== 'win32' ) {
57- const result = await nodefs . stat ( keyPair . getPrivateKeyPath ( ) )
57+ const result = nodefs . statSync ( keyPair . getPrivateKeyPath ( ) )
5858 assert . strictEqual ( result . mode & 0o777 , 0o600 )
5959 }
6060 } )
You can’t perform that action at this time.
0 commit comments