mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* test: add collect test case * test: add zabbix test * test: add adapter2 test * test: add audit test * test: add checkhealth test * test: add common test * test: add gen_metric test * test: add command test * test: add connector test * test: add log test * test: add web test * test: add builder test * test: add handle test * test: add util test * test: add audit test * test: add adapter2 test * test: modify test case
23 lines
433 B
Go
23 lines
433 B
Go
package process
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/taosdata/taoskeeper/infrastructure/config"
|
|
)
|
|
|
|
func TestExpandMetricsFromConfig(t *testing.T) {
|
|
ctx := context.Background()
|
|
cfg := &config.MetricsConfig{
|
|
Tables: []string{"t1", "t1", "t2", "t2"},
|
|
Database: config.Database{
|
|
Name: "db",
|
|
},
|
|
}
|
|
|
|
assert.Panics(t, func() {
|
|
_, _ = ExpandMetricsFromConfig(ctx, nil, cfg)
|
|
})
|
|
}
|