Skip to content

Commit 7dd34da

Browse files
committed
redo imports
1 parent 1331bb2 commit 7dd34da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/test/awsService/ec2/sshKeyPair.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55
import * as vscode from 'vscode'
66
import assert from 'assert'
7+
import nodefs from 'fs'
78
import * as sinon from 'sinon'
89
import * as path from 'path'
910
import * as os from 'os'
10-
import { stat } from 'fs/promises'
1111
import { SshKeyPair } from '../../../awsService/ec2/sshKeyPair'
1212
import { createTestWorkspaceFolder, installFakeClock } from '../../testUtil'
1313
import { 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
})

0 commit comments

Comments
 (0)