mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: broken test
Was using a constant that no longer exists
This commit is contained in:
parent
1ed299a6d7
commit
65a8e96779
@ -9,7 +9,6 @@ import (
|
||||
"github.com/goreleaser/goreleaser/config"
|
||||
"github.com/goreleaser/goreleaser/context"
|
||||
"github.com/goreleaser/goreleaser/internal/testlib"
|
||||
"github.com/goreleaser/goreleaser/pipeline/defaults"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@ -57,7 +56,7 @@ func TestNoTagsSnapshot(t *testing.T) {
|
||||
var ctx = &context.Context{
|
||||
Config: config.Project{
|
||||
Snapshot: config.Snapshot{
|
||||
NameTemplate: defaults.SnapshotNameTemplate,
|
||||
NameTemplate: "SNAPSHOT-{{.Commit}}",
|
||||
},
|
||||
},
|
||||
Snapshot: true,
|
||||
@ -95,7 +94,7 @@ func TestNoTagsNoSnapshot(t *testing.T) {
|
||||
var ctx = &context.Context{
|
||||
Config: config.Project{
|
||||
Snapshot: config.Snapshot{
|
||||
NameTemplate: defaults.SnapshotNameTemplate,
|
||||
NameTemplate: "SNAPSHOT-{{.Commit}}",
|
||||
},
|
||||
},
|
||||
Snapshot: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user