mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
builtin/logical/aws: fix dropped test error (#12417)
This commit is contained in:
@@ -246,7 +246,12 @@ func Test_combinePolicyDocuments(t *testing.T) {
|
||||
t.Fatalf("got unexpected error: %s", err)
|
||||
}
|
||||
// remove whitespace
|
||||
tc.expectedOutput, err = compactJSON(tc.expectedOutput)
|
||||
if tc.expectedOutput != "" {
|
||||
tc.expectedOutput, err = compactJSON(tc.expectedOutput)
|
||||
if err != nil {
|
||||
t.Fatalf("error compacting JSON: %s", err)
|
||||
}
|
||||
}
|
||||
if policyOut != tc.expectedOutput {
|
||||
t.Fatalf("did not receive expected output: want %s, got %s", tc.expectedOutput, policyOut)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user