Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Dec 30, 2024
1 parent 99461db commit e6d0c12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions thorbuilder/thorbuilder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ func TestBuilder(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, filepath.Join(builder.downloadPath, "bin", "thor"), thorBinaryPath)

// Second download should skip cloning
err = builder.Download()
require.NoError(t, err)

// Second build should skip building if the binary exists
thorBinaryPath, err = builder.Build()
require.NoError(t, err)
assert.Equal(t, filepath.Join(builder.downloadPath, "bin", "thor"), thorBinaryPath)
//// Second download should skip cloning
//err = builder.Download()
//require.NoError(t, err)
//
//// Second build should skip building if the binary exists
//thorBinaryPath, err = builder.Build()
//require.NoError(t, err)
//assert.Equal(t, filepath.Join(builder.downloadPath, "bin", "thor"), thorBinaryPath)
})

t.Run("Test Build Non-Reusable", func(t *testing.T) {
Expand Down

0 comments on commit e6d0c12

Please sign in to comment.