Skip to content

Commit

Permalink
fix: Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Nov 16, 2023
1 parent e7d4ed0 commit 55a5278
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/neuron-wallet/tests/services/node.test.ts
Original file line number Diff line number Diff line change
@@ -353,6 +353,7 @@ describe('NodeService', () => {
stubbedStartCKBNode.mockResolvedValue(true)
stubbedNetworsServiceGet.mockReturnValue({ remote: bundledNodeUrl, readonly: true })
getLocalNodeInfoMock.mockRejectedValue('not start')
showMessageBoxMock.mockReturnValue({ then() {} })
await nodeService.tryStartNodeOnDefaultURI()

jest.advanceTimersByTime(10000)
@@ -369,6 +370,7 @@ describe('NodeService', () => {
beforeEach(async () => {
stubbedConnectionStatusSubjectNext.mockReset()
stubbedNetworsServiceGet.mockReturnValue({ remote: fakeHTTPUrl, readonly: false })
showMessageBoxMock.mockReturnValue({ then() {} })
await eventCallback({ currentNetworkID: 'network2' })
jest.advanceTimersByTime(10000)
})

1 comment on commit 55a5278

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6885710217

Please sign in to comment.