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:
parent
f4beb91316
commit
120561a7f6
2 changed files with 18 additions and 0 deletions
14
net/peer/context_test.go
Normal file
14
net/peer/context_test.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue