Skip to content

Commit

Permalink
test: bug #130 reproduced (Go tests are supposed to fail) #129 #130
Browse files Browse the repository at this point in the history
  • Loading branch information
flelli committed Jan 22, 2023
1 parent ce108ac commit 686e91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/go/nyx/test/integration/git/go_git_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1483,15 +1483,15 @@ func TestGoGitRepositoryIsCleanWithTextFileContainingLineFeedsUsingGitCommand(t

// Give the local repository an identity or some further steps may fail
out = new(bytes.Buffer)
cmd = &exec.Cmd{Path: commandPath, Dir: repoDirectory, Env: os.Environ(), Args: []string{"git", "config ", "user.email", "\"jdoe@example.com\""}, Stdout: out, Stderr: out}
cmd = &exec.Cmd{Path: commandPath, Dir: repoDirectory, Env: os.Environ(), Args: []string{"git", "config", "user.email", "\"jdoe@example.com\""}, Stdout: out, Stderr: out}
err = cmd.Run()
if err != nil {
fmt.Printf("output from '%v' is:\n", cmd.String())
fmt.Printf("%v\n", out.String())
}
assert.NoError(t, err)
out = new(bytes.Buffer)
cmd = &exec.Cmd{Path: commandPath, Dir: repoDirectory, Env: os.Environ(), Args: []string{"git", "config ", "user.name", "\"John Doe\""}, Stdout: out, Stderr: out}
cmd = &exec.Cmd{Path: commandPath, Dir: repoDirectory, Env: os.Environ(), Args: []string{"git", "config", "user.name", "\"John Doe\""}, Stdout: out, Stderr: out}
err = cmd.Run()
if err != nil {
fmt.Printf("output from '%v' is:\n", cmd.String())
Expand Down

0 comments on commit 686e91d

Please sign in to comment.