mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Update CI configs to v0.4.13
Update lint scripts and CI configs.
This commit is contained in:
@@ -28,6 +28,7 @@ jobs:
|
||||
run: |
|
||||
go test \
|
||||
-coverprofile=cover.out -covermode=atomic \
|
||||
-bench=. \
|
||||
${TEST_EXTRA_ARGS:-} \
|
||||
-v -race ${TEST_PACKAGES}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user