Skip to content

Commit

Permalink
adding logs and fail-fast = false
Browse files Browse the repository at this point in the history
  • Loading branch information
anandmukul93 committed Feb 13, 2025
1 parent 406366b commit 8b0fada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: Run test cases (with consul${{ matrix.consul-ent-tag }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go: [^1]
Expand Down
8 changes: 4 additions & 4 deletions watch/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestMain(m *testing.M) {

// sub-main so I can use defer
func main(m *testing.M) int {
log.SetOutput(io.Discard)
log.SetOutput(os.Stdout)
testVault = newTestVault()
defer func() { testVault.Stop() }()

Expand Down Expand Up @@ -70,11 +70,11 @@ func newTestVault() *vaultServer {
}
args := []string{
"server", "-dev", "-dev-root-token-id", vaultToken,
"-dev-no-store-token",
"-dev-no-store-token", "-log-level", "debug",
}
cmd := exec.Command("vault", args...)
cmd.Stdout = io.Discard
cmd.Stderr = io.Discard
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout

if err := cmd.Start(); err != nil {
panic("vault failed to start: " + err.Error())
Expand Down

0 comments on commit 8b0fada

Please sign in to comment.