cnabio / cnab-go

A Go implementation of CNAB Core 1.0
MIT License
69 stars 35 forks source link

Flake: TestDockerDriver_Run #298

Open carolynvs opened 1 year ago

carolynvs commented 1 year ago

Sometimes I will see this test fail in CI where it appears to capture the output of the driver twice. Repeating the test fixes it.

docker_integration_test.go:102: 
            Error Trace:    docker_integration_test.go:102
                                        docker_integration_test.go:44
            Error:          Not equal: 
                            expected: "Install action\n\nListing inputs\ninput1\n\nGenerating outputs\nAction install complete for example\n"
                            actual  : "Install action\n\nListing inputs\ninput1\n\nGenerating outputs\nAction install complete for example\nInstall action\n\nListing inputs\ninput1\n\nGenerating outputs\nAction install complete for example\n"

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1,8 @@
                            +Install action
                            +
                            +Listing inputs
                            +input1
                            +
                            +Generating outputs
                            +Action install complete for example
                             Install action
            Test:           TestDockerDriver_Run
--- FAIL: TestDockerDriver_Run (4.29s)