diff --git a/.github/actions/go-test/entrypoint.sh b/.github/actions/go-test/entrypoint.sh index 3594a68463..0da9a0a561 100755 --- a/.github/actions/go-test/entrypoint.sh +++ b/.github/actions/go-test/entrypoint.sh @@ -37,5 +37,5 @@ fi # Need to fetch golang.org/x/* dependencies go mod vendor -v -go test $INPUT_DIR +go test --buildvcs=false $INPUT_DIR exit $? diff --git a/traffic_monitor/poller/monitorconfig.go b/traffic_monitor/poller/monitorconfig.go index 639cf6a346..5f4f04eafc 100644 --- a/traffic_monitor/poller/monitorconfig.go +++ b/traffic_monitor/poller/monitorconfig.go @@ -112,6 +112,11 @@ func (p MonitorConfigPoller) Poll() { log.Errorf("MonitorConfigPoller: %s\n %v\n", err, monitorConfig) continue } + // poll the CRConfig so that it is synchronized with the TMConfig + if _, err := p.Session.CRConfigRaw(p.OpsConfig.CdnName); err != nil { + log.Errorf("MonitorConfigPoller: error getting CRConfig: %v", err) + continue + } p.writeConfig(MonitorCfg{CDN: p.OpsConfig.CdnName, Cfg: *monitorConfig}) } }