Files
go-openai-realtime/permanent_error_test.go
zeekayandHanzo Dev 601155d4d2 refactor(module): declare own import path github.com/hanzoai/go-openai-realtime
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]>
2026-07-17 22:07:18 -07:00

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())
}