Skip descriptor test on Travis.

This commit is contained in:
Sebastian Zagrodzki
2017-03-09 12:34:49 -05:00
parent 40d328967b
commit 76721213eb

View File

@@ -16,12 +16,16 @@
package usb_test package usb_test
import ( import (
"os"
"testing" "testing"
. "github.com/kylelemons/gousb/usb" . "github.com/kylelemons/gousb/usb"
) )
func TestGetStringDescriptorAscii(t *testing.T) { func TestGetStringDescriptorAscii(t *testing.T) {
if os.Getenv("TRAVIS") == "true" {
t.Skip("This test is known to fail under TravisCI")
}
c := NewContext() c := NewContext()
defer c.Close() defer c.Close()
c.Debug(0) c.Debug(0)