Skip to content

Commit

Permalink
fix(ci): run devnet module unit tests (#2756)
Browse files Browse the repository at this point in the history
* Run devnet unit tests in unit-test workflow
* Fix `Test_marshalYAML`
  • Loading branch information
qdm12 committed Aug 19, 2022
1 parent 82745ae commit f635c59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
chmod +x $HOME/.local/bin/subkey
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run devnet unit tests
run: |
cd devnet && \
go test -timeout=10m ./... && \
cd ..
- name: Run unit tests
run: go test -short -coverprofile=coverage.out -covermode=atomic -timeout=45m ./...

Expand Down
8 changes: 2 additions & 6 deletions devnet/cmd/update-dd-agent-confd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ func Test_marshalYAML(t *testing.T) {
PrometheusURL: "http://127.0.0.1:9876/metrics",
Metrics: []string{
"gossamer_*",
"network_*",
"service_*",
"system_*",
"go_*",
},
HealthServiceCheck: true,
},
Expand All @@ -60,9 +58,7 @@ func Test_marshalYAML(t *testing.T) {
PrometheusURL: "http://127.0.0.1:9876/metrics",
Metrics: []string{
"gossamer_*",
"network_*",
"service_*",
"system_*",
"go_*",
},
HealthServiceCheck: true,
Namespace: "SomeNamespace",
Expand Down

0 comments on commit f635c59

Please sign in to comment.