mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2026-04-07 17:53:30 +00:00
Compare commits
1 Commits
add-load-f
...
v0.5.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fd190bc4e |
@@ -4,6 +4,7 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/onyx-and-iris/vbantxt"
|
"github.com/onyx-and-iris/vbantxt"
|
||||||
@@ -28,14 +29,14 @@ func run(t *testing.T, client *vbantxt.VbanTxt, script []byte) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSendVm(t *testing.T) {
|
func TestSendVm(t *testing.T) {
|
||||||
client, err := vbantxt.New("localhost", 6980, "onyx")
|
client, err := vbantxt.New(os.Getenv("VBANTXT_HOST"), 6980, os.Getenv("VBANTXT_STREAMNAME"))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
run(t, client, vm)
|
run(t, client, vm)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSendMatrix(t *testing.T) {
|
func TestSendMatrix(t *testing.T) {
|
||||||
client, err := vbantxt.New("localhost", 6990, "onyx")
|
client, err := vbantxt.New(os.Getenv("VBANTXT_HOST"), 6990, os.Getenv("VBANTXT_STREAMNAME"))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
run(t, client, matrix)
|
run(t, client, matrix)
|
||||||
|
|||||||
Reference in New Issue
Block a user