This commit is contained in:
number571 2023-05-07 07:44:46 +07:00
parent 9cda5d33b2
commit ea6543ee28
3 changed files with 9 additions and 5 deletions

View File

@ -13,5 +13,9 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev
- name: disable and stop mono-xsp4.service
run: |
sudo systemctl stop mono-xsp4.service
sudo systemctl disable mono-xsp4.service
- name: Run test
run: make

View File

@ -16,13 +16,13 @@ import (
)
func TestHandleMessageAPI(t *testing.T) {
_, node, srv := testAllCreate(tcPathConfig, tcPathDB, testutils.TgAddrs[25])
_, node, srv := testAllCreate(tcPathConfig, tcPathDB, testutils.TgAddrs[24])
defer testAllFree(node, srv)
hlsClient := hls_client.NewClient(
hls_client.NewBuilder(),
hls_client.NewRequester(
fmt.Sprintf("http://%s", testutils.TgAddrs[25]),
fmt.Sprintf("http://%s", testutils.TgAddrs[24]),
&http.Client{Timeout: time.Minute},
),
)

View File

@ -40,8 +40,8 @@ var (
"localhost:8067",
"localhost:8068",
"localhost:8069",
"localhost:8070",
"localhost:8070",
"localhost:8071",
"localhost:8072",
"localhost:8073",
@ -51,12 +51,12 @@ var (
"localhost:8077",
"localhost:8078",
"localhost:8079",
"localhost:8080",
"localhost:8080",
"localhost:8081",
"localhost:8082",
"localhost:8083",
"localhost:8084", // not used (github)
"localhost:8084",
"localhost:8085",
"localhost:8086",
"localhost:8087",