diff --git a/.ckb-version b/.ckb-version index bb7c6ee9e4..951ccc870d 100644 --- a/.ckb-version +++ b/.ckb-version @@ -1 +1 @@ -v0.104.0 +v0.104.1 diff --git a/packages/neuron-wallet/tests/services/monitor.test.ts b/packages/neuron-wallet/tests/services/monitor.test.ts index 94306c40aa..3f3eb9dff9 100644 --- a/packages/neuron-wallet/tests/services/monitor.test.ts +++ b/packages/neuron-wallet/tests/services/monitor.test.ts @@ -119,14 +119,14 @@ describe('base monitor', () => { }) it('not living', async () => { isLivingMock.mockResolvedValue(true).mockResolvedValueOnce(false) - monitor.startMonitor(100) + await monitor.startMonitor(100) await wait(200) expect(isLivingMock).toHaveBeenCalled() expect(restartMock).toHaveBeenCalled() }) it('isLiving timeout', async () => { isLivingMock.mockImplementation(() => wait(200)) - monitor.startMonitor(100) + await monitor.startMonitor(100) await wait(200) expect(isLivingMock).toHaveBeenCalled() expect(restartMock).toHaveBeenCalledTimes(1) @@ -134,14 +134,14 @@ describe('base monitor', () => { it('not living wait restart', async () => { isLivingMock.mockResolvedValue(true).mockResolvedValueOnce(false) restartMock.mockImplementation(() => wait(400)) - monitor.startMonitor(100) + await monitor.startMonitor(100) await wait(800) expect(isLivingMock).toHaveBeenCalled() expect(restartMock).toHaveBeenCalledTimes(1) }) it('start monitor with first', async () => { isLivingMock.mockResolvedValue(true).mockResolvedValueOnce(false) - monitor.startMonitor(1000, true) + await monitor.startMonitor(1000, true) await wait(500) expect(isLivingMock).toHaveBeenCalled() expect(restartMock).toHaveBeenCalled() @@ -149,8 +149,8 @@ describe('base monitor', () => { it('twice start monitor', async () => { isLivingMock.mockReset() isLivingMock.mockResolvedValue(true) - monitor.startMonitor(500) - monitor.startMonitor(500) + await monitor.startMonitor(500) + await monitor.startMonitor(500) await wait(800) expect(isLivingMock).toHaveBeenCalledTimes(1) }) diff --git a/scripts/download-ckb.sh b/scripts/download-ckb.sh index 06dff7045b..14d2b6a69c 100755 --- a/scripts/download-ckb.sh +++ b/scripts/download-ckb.sh @@ -86,7 +86,7 @@ function download_mercury_windows() { function download_macos() { # macOS - CKB_FILENAME="ckb_${CKB_VERSION}_x86_64-apple-darwin" + CKB_FILENAME="ckb_${CKB_VERSION}_x86_64-apple-darwin-portable" cd $ROOT_DIR/packages/neuron-wallet/bin/mac curl -O -L "https://github.com/nervosnetwork/ckb/releases/download/${CKB_VERSION}/${CKB_FILENAME}.zip" @@ -101,7 +101,7 @@ function download_macos() { function download_linux() { # Linux - CKB_FILENAME="ckb_${CKB_VERSION}_x86_64-unknown-linux-gnu" + CKB_FILENAME="ckb_${CKB_VERSION}_x86_64-unknown-linux-gnu-portable" cd $ROOT_DIR/packages/neuron-wallet/bin/linux curl -O -L "https://github.com/nervosnetwork/ckb/releases/download/${CKB_VERSION}/${CKB_FILENAME}.tar.gz"