relynolli-server/CDEK/v2/auth_test.go

21 lines
350 B
Go
Raw Permalink Normal View History

2024-05-03 12:02:41 +03:00
package v2
import (
"context"
"github.com/stretchr/testify/require"
"testing"
"time"
)
func TestClientImpl_Auth(t *testing.T) {
ctx := context.Background()
timedCtx, cancel := context.WithTimeout(ctx, 3*time.Second)
defer cancel()
c := createTestClient()
resp, err := c.Auth(timedCtx)
require.NoError(t, err)
require.NotNil(t, resp)
}