File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
2323 "net/http/httptest"
2424 "net/url"
2525 "os"
26+ "runtime"
2627 "strings"
2728 "testing"
2829
@@ -37,6 +38,10 @@ func TestMain(m *testing.M) {
3738}
3839
3940func TestExampleV1 (t * testing.T ) {
41+ if runtime .GOARCH == "arm64" {
42+ t .Skip ("test skipped on ARM64 due to floating point precision differences" )
43+ }
44+
4045 r := internal .ExampleMetrics ()
4146 var have , want string
4247 ts := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
@@ -69,6 +74,10 @@ func TestExampleV1(t *testing.T) {
6974}
7075
7176func TestExampleV2 (t * testing.T ) {
77+ if runtime .GOARCH == "arm64" {
78+ t .Skip ("test skipped on ARM64 due to floating point precision differences" )
79+ }
80+
7281 r := internal .ExampleMetrics ()
7382 var have , want string
7483 ts := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
You can’t perform that action at this time.
0 commit comments