From 8e706b1d4117e48a0da19925e41bc7419b8729fe Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Sat, 14 Nov 2020 21:25:00 +0000 Subject: [PATCH] Update CI configs to v0.4.13 Update lint scripts and CI configs. --- .github/workflows/test.yaml | 1 + transport_test.go | 20 -------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 11c3f9f..a068bab 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,6 +28,7 @@ jobs: run: | go test \ -coverprofile=cover.out -covermode=atomic \ + -bench=. \ ${TEST_EXTRA_ARGS:-} \ -v -race ${TEST_PACKAGES} diff --git a/transport_test.go b/transport_test.go index 283c86d..97cbba0 100644 --- a/transport_test.go +++ b/transport_test.go @@ -156,26 +156,6 @@ func stressDuplex(t *testing.T) { } } -func Benchmark(b *testing.B) { - ca, cb := pipe(nil) - defer func() { - err := ca.Close() - check(err) - err = cb.Close() - check(err) - }() - - b.ResetTimer() - - opt := test.Options{ - MsgSize: 128, - MsgCount: b.N, - } - - err := test.StressDuplex(ca, cb, opt) - check(err) -} - func check(err error) { if err != nil { panic(err)