mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
14 lines
249 B
Go
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)
|
|
}
|