Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
pass a context to OpenStream in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Dec 19, 2020
1 parent 0e28251 commit bd232c5
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 41 deletions.
3 changes: 2 additions & 1 deletion browser_integration_native_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package websocket

import (
"bufio"
"context"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -68,7 +69,7 @@ func TestInBrowser(t *testing.T) {
t.Fatal("SERVER:", err)
}
defer conn.Close()
stream, err := conn.OpenStream()
stream, err := conn.OpenStream(context.Background())
if err != nil {
t.Fatal("SERVER: could not open stream:", err)
}
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module github.com/libp2p/go-ws-transport

require (
github.com/gorilla/websocket v1.4.2
github.com/libp2p/go-libp2p-core v0.5.1
github.com/libp2p/go-libp2p-mplex v0.2.3
github.com/libp2p/go-libp2p-testing v0.1.1
github.com/libp2p/go-libp2p-core v0.8.0
github.com/libp2p/go-libp2p-mplex v0.4.0
github.com/libp2p/go-libp2p-testing v0.4.0
github.com/libp2p/go-libp2p-transport-upgrader v0.2.0
github.com/multiformats/go-multiaddr v0.3.1
github.com/multiformats/go-multiaddr-fmt v0.1.0
Expand Down
Loading

0 comments on commit bd232c5

Please sign in to comment.