Skip to content

Commit

Permalink
chore(spanner): fix flaky test in oc_stats.go (#5914)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul2393 authored Apr 20, 2022
1 parent 74d8a71 commit a195835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spanner/oc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (

// Check that stats are being exported.
func TestOCStats(t *testing.T) {
DisableGfeLatencyAndHeaderMissingCountViews()
te := testutil.NewTestExporter()
defer te.Unregister()

Expand Down Expand Up @@ -95,6 +96,7 @@ func TestOCStats_SessionPool(t *testing.T) {
}

func testSimpleMetric(t *testing.T, v *view.View, measure, value string) {
DisableGfeLatencyAndHeaderMissingCountViews()
te := testutil.NewTestExporter(v)
defer te.Unregister()

Expand Down

0 comments on commit a195835

Please sign in to comment.