Skip to content

Commit

Permalink
metrics/influxdb: skip float64-precision-dependent tests on arm64 (et…
Browse files Browse the repository at this point in the history
…hereum#29047)

metrics/influxdb: fix failed cases caused by float64 precision on arm64
  • Loading branch information
gzliudan authored and JukLee0ira committed Dec 16, 2024
1 parent d3a5641 commit 67cd19f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions metrics/influxdb/influxdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"net/http/httptest"
"net/url"
"os"
"runtime"
"strings"
"testing"

Expand All @@ -37,6 +38,10 @@ func TestMain(m *testing.M) {
}

func TestExampleV1(t *testing.T) {
if runtime.GOARCH == "arm64" {
t.Skip("test skipped on ARM64 due to floating point precision differences")
}

r := internal.ExampleMetrics()
var have, want string
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -69,6 +74,10 @@ func TestExampleV1(t *testing.T) {
}

func TestExampleV2(t *testing.T) {
if runtime.GOARCH == "arm64" {
t.Skip("test skipped on ARM64 due to floating point precision differences")
}

r := internal.ExampleMetrics()
var have, want string
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 67cd19f

Please sign in to comment.