mirror of
https://github.com/hanzoai/go-openai-realtime.git
synced 2026-09-30 21:54:42 +00:00
fix(contrib/ws-gorilla): tests
This commit is contained in:
@@ -5,7 +5,7 @@ go 1.19
|
||||
// replace github.com/WqyJh/go-openai-realtime => ../../
|
||||
|
||||
require (
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-alpha
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2
|
||||
github.com/gorilla/websocket v1.5.3
|
||||
github.com/stretchr/testify v1.9.0
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-alpha h1:nnaFuF7qNSjkRBAoz7aso2fIGebajyM5ER6e1MbZxbc=
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-alpha/go.mod h1:nmUYODacQuObuh0DFSEIDfJM9L4ZFDRU/OEGYMryt60=
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2 h1:4xD7O/IN5dQD2gKsiPzP1Prdu5HtCy25CChXep9kaIs=
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2/go.mod h1:nmUYODacQuObuh0DFSEIDfJM9L4ZFDRU/OEGYMryt60=
|
||||
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
|
||||
github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
func TestWebSocket(t *testing.T) {
|
||||
s := test.NewTestServer(t, time.Millisecond)
|
||||
s := test.NewServer(t, time.Millisecond)
|
||||
defer s.Server.Close()
|
||||
|
||||
dialer := gorilla.NewWebSocketDialer(gorilla.WebSocketOptions{})
|
||||
@@ -56,7 +56,7 @@ func TestWebSocket(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWebSocketReadLimitError(t *testing.T) {
|
||||
s := test.NewTestServer(t, time.Millisecond)
|
||||
s := test.NewServer(t, time.Millisecond)
|
||||
defer s.Server.Close()
|
||||
|
||||
dialer := gorilla.NewWebSocketDialer(gorilla.WebSocketOptions{
|
||||
@@ -82,7 +82,7 @@ func TestWebSocketReadLimitError(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWebSocketReadLimitOK(t *testing.T) {
|
||||
s := test.NewTestServer(t, time.Millisecond)
|
||||
s := test.NewServer(t, time.Millisecond)
|
||||
defer s.Server.Close()
|
||||
|
||||
dialer := gorilla.NewWebSocketDialer(gorilla.WebSocketOptions{
|
||||
@@ -107,7 +107,7 @@ func TestWebSocketReadLimitOK(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWebSocketDialOptions(t *testing.T) {
|
||||
s := test.NewTestServer(t, time.Millisecond)
|
||||
s := test.NewServer(t, time.Millisecond)
|
||||
defer s.Server.Close()
|
||||
|
||||
dialer := gorilla.NewWebSocketDialer(gorilla.WebSocketOptions{
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ module github.com/WqyJh/go-openai-realtime/examples
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2
|
||||
github.com/faiface/beep v1.1.0
|
||||
github.com/gordonklaus/portaudio v0.0.0-20230709114228-aafa478834f5
|
||||
github.com/sashabaranov/go-openai v1.32.0
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2 h1:4xD7O/IN5dQD2gKsiPzP1Prdu5HtCy25CChXep9kaIs=
|
||||
github.com/WqyJh/go-openai-realtime v0.2.0-beta.2/go.mod h1:nmUYODacQuObuh0DFSEIDfJM9L4ZFDRU/OEGYMryt60=
|
||||
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
|
||||
github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
||||
github.com/d4l3k/messagediff v1.2.2-0.20190829033028-7e0a312ae40b/go.mod h1:Oozbb1TVXFac9FtSIxHBMnBCq2qeH/2KkEQxENCrlLo=
|
||||
|
||||
Reference in New Issue
Block a user