Skip to content

Commit 6c13e64

Browse files
committed
chore: skip arm64
1 parent 9410ac1 commit 6c13e64

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

internal/cache/cache_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cache
22

33
import (
44
"fmt"
5+
"runtime"
56
"testing"
67

78
"github.com/stretchr/testify/assert"
@@ -86,6 +87,10 @@ func TestCache_Get_missing_data(t *testing.T) {
8687
}
8788

8889
func TestCache_buildKey(t *testing.T) {
90+
if runtime.GOARCH != "amd64" {
91+
t.Skip("skipping test because cache values change on arm64")
92+
}
93+
8994
pkgCache := setupCache(t)
9095

9196
pkg := fakePackage()
@@ -97,6 +102,10 @@ func TestCache_buildKey(t *testing.T) {
97102
}
98103

99104
func TestCache_pkgActionID(t *testing.T) {
105+
if runtime.GOARCH != "amd64" {
106+
t.Skip("skipping test because cache values change on arm64")
107+
}
108+
100109
pkgCache := setupCache(t)
101110

102111
pkg := fakePackage()
@@ -108,6 +117,10 @@ func TestCache_pkgActionID(t *testing.T) {
108117
}
109118

110119
func TestCache_packageHash_load(t *testing.T) {
120+
if runtime.GOARCH != "amd64" {
121+
t.Skip("skipping test because cache values change on arm64")
122+
}
123+
111124
pkgCache := setupCache(t)
112125

113126
pkg := fakePackage()
@@ -121,6 +134,10 @@ func TestCache_packageHash_load(t *testing.T) {
121134
}
122135

123136
func TestCache_packageHash_store(t *testing.T) {
137+
if runtime.GOARCH != "amd64" {
138+
t.Skip("skipping test because cache values change on arm64")
139+
}
140+
124141
pkgCache := setupCache(t)
125142

126143
pkg := fakePackage()
@@ -143,6 +160,10 @@ func TestCache_packageHash_store(t *testing.T) {
143160
}
144161

145162
func TestCache_computeHash(t *testing.T) {
163+
if runtime.GOARCH != "amd64" {
164+
t.Skip("skipping test because cache values change on arm64")
165+
}
166+
146167
pkgCache := setupCache(t)
147168

148169
pkg := fakePackage()

0 commit comments

Comments
 (0)