mirror of
https://github.com/pion/ice.git
synced 2025-09-26 19:41:11 +08:00
25 lines
465 B
Go
25 lines
465 B
Go
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build !js
|
|
// +build !js
|
|
|
|
package ice
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestNoBestAvailableCandidatePairAfterAgentConstruction(t *testing.T) {
|
|
agent, err := NewAgent(&AgentConfig{})
|
|
require.NoError(t, err)
|
|
|
|
defer func() {
|
|
require.NoError(t, agent.Close())
|
|
}()
|
|
|
|
require.Nil(t, agent.getBestAvailableCandidatePair())
|
|
}
|