Skip to content

Commit 92c8138

Browse files
committed
adapt other test
1 parent 87fbc01 commit 92c8138

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/core/src/test/credentials/provider/sharedCredentialsProviderFactory.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('SharedCredentialsProviderFactory', async function () {
120120
)
121121
})
122122

123-
it('refresh does not reload from file if the file has not changed', async function () {
123+
it('refresh does reload from file even if the file has changed', async function () {
124124
const sut = new SharedCredentialsProviderFactory()
125125

126126
// First load
@@ -129,10 +129,7 @@ describe('SharedCredentialsProviderFactory', async function () {
129129
// Expect: No reload
130130
await sut.refresh()
131131

132-
assert.ok(
133-
loadSharedCredentialsSectionsStub.calledOnce,
134-
'Credentials should have only been loaded from disk once'
135-
)
132+
assert.ok(loadSharedCredentialsSectionsStub.calledTwice, 'Credentials should have loaded from disk twice')
136133
})
137134

138135
it('refresh reloads from file if the file has changed', async function () {

0 commit comments

Comments
 (0)