1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Request manager and context tests

This commit is contained in:
mcrakhman 2024-08-05 18:43:51 +02:00
parent f4beb91316
commit 120561a7f6
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
2 changed files with 18 additions and 0 deletions

14
net/peer/context_test.go Normal file
View file

@ -0,0 +1,14 @@
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)
}