Simplify stdout assertion in createRun test
Removed unnecessary conditional check for wantStdout in Test_createRun. Now always asserts equality between wantStdout and actual stdout output, improving test clarity.
This commit is contained in:
parent
32bf9159ea
commit
44e81b021c
1 changed files with 1 additions and 3 deletions
|
|
@ -180,10 +180,8 @@ func Test_createRun(t *testing.T) {
|
|||
} else {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
if tt.wantStdout != "" {
|
||||
require.Equal(t, tt.wantStdout, stdout.String())
|
||||
}
|
||||
|
||||
require.Equal(t, tt.wantStdout, stdout.String())
|
||||
require.Equal(t, tt.wantStdErr, stderr.String())
|
||||
|
||||
if tt.stubs != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue