Test: balancer / auth / controller in pkg
This commit is contained in:
12
pkg/balancer/balancer_test.go
Normal file
12
pkg/balancer/balancer_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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"))
|
||||
}
|
||||
Reference in New Issue
Block a user