Fix up usb to pass reliably and to work cross-platform

This commit is contained in:
Kyle Lemons
2013-08-14 19:38:57 -07:00
parent ca13741ba1
commit b9f2aa720b
3 changed files with 7 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ func TestEnum(t *testing.T) {
func TestMultipleContexts(t *testing.T) {
var buf bytes.Buffer
log.SetOutput(&buf)
for i := 0; i < 10; i++ {
for i := 0; i < 2; i++ {
ctx := NewContext()
_, err := ctx.ListDevices(func(desc *Descriptor) bool {
return false