1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00
Files
v2fly/common/mux/client_test.go
Darien Raymond a69217b584 test case
2018-10-24 22:37:11 +02:00

22 lines
372 B
Go

package mux_test
import (
"testing"
"v2ray.com/core/common/errors"
"v2ray.com/core/common/mux"
)
func TestIncrementalPickerFailure(t *testing.T) {
picker := mux.IncrementalWorkerPicker{
New: func() (*mux.ClientWorker, error) {
return nil, errors.New("test")
},
}
_, err := picker.PickAvailable()
if err == nil {
t.Error("expected error, but nil")
}
}