Skip to content

Commit

Permalink
allow parallel test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohan Totting committed Aug 24, 2023
1 parent d28e919 commit 03265b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion room_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func TestRoomCreateAndClose(t *testing.T) {
}

func TestRoomJoinLeftEvent(t *testing.T) {
t.Parallel()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

Expand Down Expand Up @@ -116,6 +117,7 @@ func TestRoomJoinLeftEvent(t *testing.T) {
}

func TestRoomStats(t *testing.T) {
t.Parallel()
var (
totalClientIngressBytes uint64
totalClientEgressBytes uint64
Expand All @@ -125,7 +127,7 @@ func TestRoomStats(t *testing.T) {
defer cancel()

// create room manager first before create new room
roomManager := NewManager(ctx, "test-join-left", Options{WebRTCPort: 40000})
roomManager := NewManager(ctx, "test-join-left", Options{WebRTCPort: 40001})

roomID := roomManager.CreateRoomID()
roomName := "test-room"
Expand Down
1 change: 1 addition & 0 deletions sfu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

func TestActiveTracks(t *testing.T) {
t.Parallel()
// _ = os.Setenv("PION_LOG_DEBUG", "pc,dtls")
// _ = os.Setenv("PION_LOG_TRACE", "ice")
// _ = os.Setenv("PIONS_LOG_INFO", "all")
Expand Down

0 comments on commit 03265b0

Please sign in to comment.