mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-01 07:52:25 +08:00
16 lines
415 B
Go
16 lines
415 B
Go
package tester
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
"zlmediakit/zlmediakit"
|
|
)
|
|
|
|
func TestServer(t *testing.T) {
|
|
zlmediakit.MK_env_init2(0, zlmediakit.LTrace, zlmediakit.LOG_CONSOLE|zlmediakit.LOG_CALLBACK|zlmediakit.LOG_FILE,
|
|
"log", 7, true, "../../conf/config.ini", true, "../../default.pem", "")
|
|
zlmediakit.MK_http_server_start(80, false)
|
|
zlmediakit.MK_http_server_start(443, true)
|
|
time.Sleep(1000 * time.Second)
|
|
}
|