Rainbond/api/middleware/license_test.go
2019-09-10 17:27:00 +08:00

11 lines
246 B
Go

package middleware
import "testing"
func TestVerifyLicense(t *testing.T) {
licPath := "testdata/license.yb"
licSoPath := "wrong path"
if err := verifyLicense(licPath, licSoPath); err == nil {
t.Errorf("expected error, but return nil")
}
}