Chore: picker support get first error

This commit is contained in:
Dreamacro
2020-04-16 18:31:40 +08:00
parent 1825535abd
commit 5c03613858
3 changed files with 20 additions and 3 deletions

View File

@ -36,4 +36,5 @@ func TestPicker_Timeout(t *testing.T) {
number := picker.Wait()
assert.Nil(t, number)
assert.NotNil(t, picker.Error())
}