Skip to content

Commit

Permalink
src: speed up tests by building with a test platform (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland authored Jun 22, 2023
1 parent 7b5bd33 commit 264507d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/functions/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func TestClient_Runner(t *testing.T) {
}

// Build
if f, err = client.Build(ctx, f); err != nil {
if f, err = client.Build(ctx, f, fn.BuildWithPlatforms(TestPlatforms)); err != nil {
t.Fatal(err)
}

Expand Down Expand Up @@ -779,7 +779,7 @@ func TestClient_RunTimeout(t *testing.T) {
defer cancel()

// Build
if f, err = client.Build(ctx, f); err != nil {
if f, err = client.Build(ctx, f, fn.BuildWithPlatforms(TestPlatforms)); err != nil {
t.Fatal(err)
}

Expand Down Expand Up @@ -1828,7 +1828,7 @@ func TestClient_CreateMigration(t *testing.T) {

// TestClient_RunReadiness ensures that the run task awaits a ready response
// from the job before returning.
func TestClient_RunReadiness(t *testing.T) {
func TestClient_RunRediness(t *testing.T) {
cwd, err := os.Getwd()
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -1871,7 +1871,7 @@ func TestClient_RunReadiness(t *testing.T) {
defer cancel()

// Build
if f, err = client.Build(ctx, f); err != nil {
if f, err = client.Build(ctx, f, fn.BuildWithPlatforms(TestPlatforms)); err != nil {
t.Fatal(err)
}

Expand Down

0 comments on commit 264507d

Please sign in to comment.