Skip to content

Commit

Permalink
internal/counter: don't test on unsupported platforms
Browse files Browse the repository at this point in the history
add testenv.SkipIfUnsupportedPlatform(t)
to two tests missing it.

Fixes: golang/go#62704

Change-Id: I9b86f0882f0d47998613a8d77f36f9bc68935e69
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/529335
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Peter Weinberger <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
  • Loading branch information
pjweinbgo committed Sep 19, 2023
1 parent 46be8a5 commit 09cff4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/counter/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,12 @@ func TestNewFile(t *testing.T) {
}

func TestWeekendsNewUser(t *testing.T) {
testenv.SkipIfUnsupportedPlatform(t)
commonWeekends(t, false)
}

func TestWeekendsOldUser(t *testing.T) {
testenv.SkipIfUnsupportedPlatform(t)
commonWeekends(t, true)
}

Expand Down

0 comments on commit 09cff4f

Please sign in to comment.