1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00
any-sync/net/peer/context_test.go
2024-08-05 18:43:51 +02:00

14 lines
249 B
Go

package peer
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCtxProtoVersion(t *testing.T) {
ctx := CtxWithProtoVersion(ctx, 1)
ver, err := CtxProtoVersion(ctx)
require.NoError(t, err)
require.Equal(t, uint32(1), ver)
}