Skip to content

Commit

Permalink
*: ignore some tests on i386
Browse files Browse the repository at this point in the history
Ignore some tests whose output varies slightly across architectures.
  • Loading branch information
nicktrav authored and RaduBerinde committed Jun 11, 2024
1 parent 75d2a93 commit 600eaf7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions event_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"bytes"
"fmt"
"reflect"
"runtime"
"strings"
"sync"
"testing"
Expand All @@ -25,6 +26,9 @@ import (

// Verify event listener actions, as well as expected filesystem operations.
func TestEventListener(t *testing.T) {
if runtime.GOARCH == "386" {
t.Skip("skipped on 32-bit due to slightly varied output")
}
var d *DB
var memLog base.InMemLogger
mem := vfs.NewMem()
Expand Down
4 changes: 4 additions & 0 deletions ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"math"
"os"
"path/filepath"
"runtime"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -2046,6 +2047,9 @@ func TestIngest(t *testing.T) {
var mem vfs.FS
var d *DB
var flushed bool
if runtime.GOARCH == "386" {
t.Skip("skipped on 32-bit due to slightly varied output")
}
defer func() {
require.NoError(t, d.Close())
}()
Expand Down
4 changes: 4 additions & 0 deletions metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"bytes"
"fmt"
"math/rand"
"runtime"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -94,6 +95,9 @@ func exampleMetrics() Metrics {
}

func TestMetrics(t *testing.T) {
if runtime.GOARCH == "386" {
t.Skip("skipped on 32-bit due to slightly varied output")
}
opts := &Options{
Comparer: testkeys.Comparer,
FormatMajorVersion: FormatNewest,
Expand Down

0 comments on commit 600eaf7

Please sign in to comment.