1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-11 14:39:28 +02:00

test: fix auto-snapshot test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2021-08-21 11:18:54 -03:00
parent 67e2dc6020
commit f3f77c7e4a
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -31,7 +31,7 @@ func TestReleaseAutoSnapshot(t *testing.T) {
cmd := newReleaseCmd()
cmd.cmd.SetArgs([]string{"--auto-snapshot", "--skip-publish"})
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.Len(t, matches, 1, "should have implied --snapshot")
})