Skip to content

Commit

Permalink
command/debug_test: errors are captured
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jul 20, 2020
1 parent 42b1bc8 commit e0a80ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ func TestDebugCapturedFiles(t *testing.T) {
// Version is always captured
require.FileExists(t, filepath.Join(path, "version", "agent-self.json"))

// Consul and Vault are only captured if they exist
// Consul and Vault contain results or errors
_, err := os.Stat(filepath.Join(path, "version", "consul-agent-self.json"))
require.Error(t, err)
require.NoError(t, err)
_, err = os.Stat(filepath.Join(path, "version", "vault-sys-health.json"))
require.Error(t, err)
require.NoError(t, err)

// Monitor files are only created when selected
require.FileExists(t, filepath.Join(path, "server", "leader", "monitor.log"))
Expand Down

0 comments on commit e0a80ec

Please sign in to comment.