mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-26 04:22:05 +02:00
tests updated
This commit is contained in:
parent
bf6b6fe9f8
commit
f4c79826da
@ -27,9 +27,7 @@ func TestRunPipe(t *testing.T) {
|
|||||||
// this might fail as the image doesnt exist yet, so lets ignore the error
|
// this might fail as the image doesnt exist yet, so lets ignore the error
|
||||||
_ = exec.Command("docker", "rmi", "goreleaser/test_run_pipe:v1.0.0").Run()
|
_ = exec.Command("docker", "rmi", "goreleaser/test_run_pipe:v1.0.0").Run()
|
||||||
var ctx = &context.Context{
|
var ctx = &context.Context{
|
||||||
Git: context.GitInfo{
|
Version: "1.0.0",
|
||||||
CurrentTag: "v1.0.0",
|
|
||||||
},
|
|
||||||
Publish: true,
|
Publish: true,
|
||||||
Config: config.Project{
|
Config: config.Project{
|
||||||
ProjectName: "mybin",
|
ProjectName: "mybin",
|
||||||
@ -59,12 +57,12 @@ func TestRunPipe(t *testing.T) {
|
|||||||
// this might should not fail as the image should have been created when
|
// this might should not fail as the image should have been created when
|
||||||
// the step ran
|
// the step ran
|
||||||
assert.NoError(
|
assert.NoError(
|
||||||
exec.Command("docker", "rmi", "goreleaser/test_run_pipe:v1.0.0").Run(),
|
exec.Command("docker", "rmi", "goreleaser/test_run_pipe:1.0.0").Run(),
|
||||||
)
|
)
|
||||||
// the test_run_pipe_nope image should not have been created, so deleting
|
// the test_run_pipe_nope image should not have been created, so deleting
|
||||||
// it should fail
|
// it should fail
|
||||||
assert.Error(
|
assert.Error(
|
||||||
exec.Command("docker", "rmi", "goreleaser/test_run_pipe_nope:v1.0.0").Run(),
|
exec.Command("docker", "rmi", "goreleaser/test_run_pipe_nope:1.0.0").Run(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user