Skip to content

Commit

Permalink
Merge pull request kubernetes#4184 from MaciekPytel/fix_ut
Browse files Browse the repository at this point in the history
Skipping metrics tests added in kubernetes#4022
  • Loading branch information
k8s-ci-robot authored Jul 8, 2021
2 parents 7f6f953 + 52392b3 commit 389cfd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster-autoscaler/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ import (
)

func TestDisabledPerNodeGroupMetrics(t *testing.T) {
t.Skip("Registering metrics multiple times causes panic. Skipping until the test is fixed to not impact other tests.")
RegisterAll(false)
assert.False(t, nodesGroupMinNodes.IsCreated())
assert.False(t, nodesGroupMaxNodes.IsCreated())
}

func TestEnabledPerNodeGroupMetrics(t *testing.T) {
t.Skip("Registering metrics multiple times causes panic. Skipping until the test is fixed to not impact other tests.")
RegisterAll(true)
assert.True(t, nodesGroupMinNodes.IsCreated())
assert.True(t, nodesGroupMaxNodes.IsCreated())
Expand Down

0 comments on commit 389cfd2

Please sign in to comment.