Skip to content

Commit

Permalink
Stop testing panic from cgo
Browse files Browse the repository at this point in the history
Until upstream resolves golang/go#16150

Fixes #95
  • Loading branch information
arlolra committed Dec 4, 2018
1 parent dcbfc82 commit a6dc960
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions datachannel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ func TestDataStateEnums(t *testing.T) {
cgoFakeStateChange(c, DataStateConnecting)
cgoFakeStateChange(c, DataStateClosing)

So(func() {
cgoFakeStateChange(c, 999)
}, ShouldPanic)
// Disabled until https://github.com/golang/go/issues/16150 is fixed.
// See the discussion in https://github.com/keroserene/go-webrtc/issues/95
// So(func() {
// cgoFakeStateChange(c, 999)
// }, ShouldPanic)
})

Convey("OnBufferedAmountLow", func() {
Expand Down

0 comments on commit a6dc960

Please sign in to comment.