From 8d146582d245e3f6a77aae6596080480aedde287 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sat, 19 Dec 2020 19:42:31 +0000 Subject: [PATCH] Add release action --- .github/workflows/release.yml | 20 ++++++++++++++++++++ internal/multiplex/session_test.go | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..03bc0af --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +on: + push: + tags: + - 'v*' + +name: Create Release + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build + run: v=${{ github.ref }} ./release.sh + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: release/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/internal/multiplex/session_test.go b/internal/multiplex/session_test.go index 79d62b5..5e9ee16 100644 --- a/internal/multiplex/session_test.go +++ b/internal/multiplex/session_test.go @@ -408,7 +408,7 @@ func TestSession_timeoutAfter(t *testing.T) { seshConfigOrdered.Obfuscator = obfuscator seshConfigOrdered.InactivityTimeout = 100 * time.Millisecond sesh := MakeSession(0, seshConfigOrdered) - time.Sleep(2 * seshConfigOrdered.InactivityTimeout) + time.Sleep(5 * seshConfigOrdered.InactivityTimeout) if !sesh.IsClosed() { t.Error("session should have timed out") }