mirror of
https://github.com/hanzoai/go-openai-realtime.git
synced 2026-09-30 21:54:42 +00:00
Hard-fork of WqyJh/go-openai-realtime (v0.5.x line, commit 3f3cf7a) into the
hanzoai org so the OpenAI/audio-LLM Go stack is fully owned. Renames the module
path across root, contrib/ws-gorilla, and examples, and repoints go-openai from
sashabaranov to github.com/hanzoai/go-openai v1.41.0 (required directly, no
replace directives anywhere).
Co-authored-by: Hanzo Dev <[email protected]>
20 lines
455 B
Go
20 lines
455 B
Go
package openairt_test
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
openairt "github.com/hanzoai/go-openai-realtime"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestPermanent(t *testing.T) {
|
|
original := errors.New("test")
|
|
err := openairt.Permanent(original)
|
|
require.ErrorIs(t, err, original)
|
|
var permanent *openairt.PermanentError
|
|
require.ErrorAs(t, err, &permanent)
|
|
require.ErrorIs(t, permanent.Err, original)
|
|
require.EqualError(t, err, original.Error())
|
|
}
|