From 999fbd3bca4234410ea9d994e7f0b70a0f775ff5 Mon Sep 17 00:00:00 2001 From: Chris Hoffman <99742+chrishoffman@users.noreply.github.com> Date: Fri, 15 Feb 2019 12:06:37 -0500 Subject: [PATCH] fixing operator unseal test (#6241) --- command/operator_unseal_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/operator_unseal_test.go b/command/operator_unseal_test.go index 1621e60d6..06d618cac 100644 --- a/command/operator_unseal_test.go +++ b/command/operator_unseal_test.go @@ -1,7 +1,10 @@ package command import ( + "bytes" + "encoding/json" "io/ioutil" + "os" "strings" "testing" @@ -164,7 +167,7 @@ func TestOperatorUnsealCommand_Format(t *testing.T) { Client: client, } - args, format, _ := setupEnv([]string{"unseal", "-format", "json"}) + args, format, _ := setupEnv([]string{"operator", "unseal", "-format", "json"}) if format != "json" { t.Fatalf("expected %q, got %q", "json", format) }