Skip to content

Commit

Permalink
force amd64 arch on integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Mar 19, 2024
1 parent a8a50e6 commit 80d8da5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion detect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ func TestDetectReleasesForVariousArchives(t *testing.T) {
{"rhysd-test/test-release-tar-xz", "release-"},
} {
t.Run(tc.slug, func(t *testing.T) {
r, ok, err := DetectLatest(context.Background(), ParseSlug(tc.slug))
source, err := NewGitHubSource(GitHubConfig{})
require.NoError(t, err, "failed to create source")
updater, err := NewUpdater(Config{Source: source, Arch: "amd64"})
require.NoError(t, err, "failed to create updater")
r, ok, err := updater.DetectLatest(context.Background(), ParseSlug(tc.slug))
skipRateLimitExceeded(t, err)

assert.NoError(t, err, "fetch failed")
Expand Down

0 comments on commit 80d8da5

Please sign in to comment.