mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2026-04-20 16:03:35 +00:00
Compare commits
2 Commits
add-load-f
...
eeb789003b
| Author | SHA1 | Date | |
|---|---|---|---|
| eeb789003b | |||
| 4fd190bc4e |
@@ -15,14 +15,14 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
|
||||
|
||||
### Added
|
||||
|
||||
- it's now possible to load configuration from environment variables. See [Environment Variables]()
|
||||
- it's now possible to load configuration from environment variables. See [Environment Variables](https://github.com/onyx-and-iris/vbantxt/tree/main?tab=readme-ov-file#environment-variables)
|
||||
- --version/-v command
|
||||
|
||||
### Changed
|
||||
|
||||
- shortname for --host flag is now -H.
|
||||
- shortname for --channel flag is now -n.
|
||||
- toml loader no longer requires a `[connection]` table. See [TOML Config]()
|
||||
- toml loader no longer requires a `[connection]` table. See [TOML Config](https://github.com/onyx-and-iris/vbantxt/tree/main?tab=readme-ov-file#toml-config)
|
||||
|
||||
|
||||
# [0.4.1] - 2025-04-05
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
_ "embed"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"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) {
|
||||
client, err := vbantxt.New("localhost", 6980, "onyx")
|
||||
client, err := vbantxt.New(os.Getenv("VBANTXT_HOST"), 6980, os.Getenv("VBANTXT_STREAMNAME"))
|
||||
require.NoError(t, err)
|
||||
|
||||
run(t, client, vm)
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
run(t, client, matrix)
|
||||
|
||||
Reference in New Issue
Block a user