You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
217 B
13 lines
217 B
3 years ago
|
package balancer
|
||
|
|
||
|
import (
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestNewBalancer(t *testing.T) {
|
||
|
a := assert.New(t)
|
||
|
a.NotNil(NewBalancer(""))
|
||
|
a.IsType(&RoundRobin{}, NewBalancer("RoundRobin"))
|
||
|
}
|