1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-30 04:50:45 +02:00

chore: simplify test

This commit is contained in:
Carlos Alexandro Becker 2023-11-04 02:00:28 +00:00
parent 74a9317c83
commit b9cca21b7a

View File

@ -22,22 +22,12 @@ func TestRun(t *testing.T) {
func TestRunGoWork(t *testing.T) {
dir := testlib.Mktmp(t)
require.NoError(t, os.WriteFile(
filepath.Join(dir, "main.go"),
[]byte("package main\nfunc main() {println(0)}"),
0o666,
))
require.NoError(t, os.WriteFile(
filepath.Join(dir, "go.mod"),
[]byte("module a"),
0o666,
))
require.NoError(t, os.Mkdir(filepath.Join(dir, "b"), 0o755))
require.NoError(t, os.WriteFile(
filepath.Join(dir, "b", "main.go"),
[]byte("package main\nfunc main() {println(1)}"),
0o666,
))
require.NoError(t, os.WriteFile(
filepath.Join(dir, "b", "go.mod"),
[]byte("module a/b"),