1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

test: removed useless test

This commit is contained in:
Carlos Alexandro Becker 2017-12-17 20:26:30 -02:00
parent d8987e281f
commit 753359a63a
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -80,32 +80,6 @@ func TestRunFullPipe(t *testing.T) {
assert.True(t, exists(post), post)
}
// TODO: this test is not irrelevant and could probably be removed
func TestRunPipeFormatBinary(t *testing.T) {
folder, back := testlib.Mktmp(t)
defer back()
writeGoodMain(t, folder)
var binary = filepath.Join(folder, buildtarget.Runtime.String(), "testing")
var config = config.Project{
ProjectName: "testing",
Dist: folder,
Builds: []config.Build{
{
Binary: "testing",
Goos: []string{
runtime.GOOS,
},
Goarch: []string{
runtime.GOARCH,
},
},
},
}
ctx := context.New(config)
assert.NoError(t, Pipe{}.Run(ctx))
assert.True(t, exists(binary), "file %s does not exist", binary)
}
func TestRunPipeArmBuilds(t *testing.T) {
folder, back := testlib.Mktmp(t)
defer back()