mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-05-13 22:16:40 +02:00
test: fix auto-snapshot test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
67e2dc6020
commit
f3f77c7e4a
@ -31,7 +31,7 @@ func TestReleaseAutoSnapshot(t *testing.T) {
|
|||||||
cmd := newReleaseCmd()
|
cmd := newReleaseCmd()
|
||||||
cmd.cmd.SetArgs([]string{"--auto-snapshot", "--skip-publish"})
|
cmd.cmd.SetArgs([]string{"--auto-snapshot", "--skip-publish"})
|
||||||
require.NoError(t, cmd.cmd.Execute())
|
require.NoError(t, cmd.cmd.Execute())
|
||||||
matches, err := filepath.Glob("./dist/fake_v0.0.2-SNAPSHOT-*_checksums.txt")
|
matches, err := filepath.Glob("./dist/fake_0.0.2-SNAPSHOT-*_checksums.txt")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Len(t, matches, 1, "should have implied --snapshot")
|
require.Len(t, matches, 1, "should have implied --snapshot")
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user