I have noticed that TestPromisesScheduleErroredDontBlockDontRun fails occasionally and then passes when I retrigger the build. I never get it to fail locally though.
CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/cnabio/cnab-to-oci/internal.GitCommit=8681d4f -X github.com/cnabio/cnab-to-oci/internal.Version=v0.3.1-beta1-10-g8681d4f -X github.com/cnabio/cnab-to-oci/internal.BuildTime=2022-03-15T14:32:58Z" -o bin/cnab-to-oci ./cmd/cnab-to-oci
go test -ldflags="-s -w -X github.com/cnabio/cnab-to-oci/internal.GitCommit=8681d4f -X github.com/cnabio/cnab-to-oci/internal.Version=v0.3.1-beta1-10-g8681d4f -X github.com/cnabio/cnab-to-oci/internal.BuildTime=2022-03-15T14:32:58Z" -failfast -race github.com/cnabio/cnab-to-oci github.com/cnabio/cnab-to-oci/cmd/cnab-to-oci github.com/cnabio/cnab-to-oci/converter github.com/cnabio/cnab-to-oci/internal github.com/cnabio/cnab-to-oci/relocation github.com/cnabio/cnab-to-oci/remotes github.com/cnabio/cnab-to-oci/tests
? github.com/cnabio/cnab-to-oci [no test files]
? github.com/cnabio/cnab-to-oci/cmd/cnab-to-oci [no test files]
ok github.com/cnabio/cnab-to-oci/converter 0.193s
? github.com/cnabio/cnab-to-oci/internal [no test files]
? github.com/cnabio/cnab-to-oci/relocation [no test files]
time="2022-03-15T14:34:59Z" level=warning msg="reference for unknown type: "
--- FAIL: TestPromisesScheduleErroredDontBlockDontRun (0.00s)
promises_test.go:87: assertion failed: expected an error, got nil
FAIL
FAIL github.com/cnabio/cnab-to-oci/remotes 0.124s
? github.com/cnabio/cnab-to-oci/tests [no test files]
FAIL
make: *** [Makefile:68: test-unit] Error 1
Exited with code exit status 2
I have noticed that TestPromisesScheduleErroredDontBlockDontRun fails occasionally and then passes when I retrigger the build. I never get it to fail locally though.