Add stats for data channel and signal (#1198)

* Add stats for data channel and signal

* Solve comment
This commit is contained in:
cnderrauber
2022-11-30 14:53:19 +08:00
committed by GitHub
parent caae389717
commit 3c907ed460
13 changed files with 217 additions and 46 deletions
+4 -2
View File
@@ -554,7 +554,8 @@ func TestDataChannel(t *testing.T) {
continue
}
require.Equal(t, 1, fp.SendDataPacketCallCount())
require.Equal(t, packet.Value, fp.SendDataPacketArgsForCall(0).Value)
dp, _ := fp.SendDataPacketArgsForCall(0)
require.Equal(t, packet.Value, dp.Value)
}
})
@@ -585,7 +586,8 @@ func TestDataChannel(t *testing.T) {
}
}
require.Equal(t, 1, p1.SendDataPacketCallCount())
require.Equal(t, packet.Value, p1.SendDataPacketArgsForCall(0).Value)
dp, _ := p1.SendDataPacketArgsForCall(0)
require.Equal(t, packet.Value, dp.Value)
})
t.Run("publishing disallowed", func(t *testing.T) {