超时时间要略大于队列等待时间,不能等于。否则队列阻塞读取还没有返回,就已经发生网络超时了 #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
workflow_dispatch: | |
jobs: | |
build-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotNET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name: Build | |
run: | | |
dotnet build -c Release | |
- name: Redis Server | |
uses: nnhy/[email protected] | |
- name: Test | |
run: | | |
dotnet test -c Release XUnitTest/XUnitTest.csproj |