(cherry picked from commit b75cc7a86c)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e235af676b
commit
6ac398763a
@@ -95,7 +95,11 @@ func TestPlugins(t *testing.T) {
|
||||
if !same {
|
||||
if updateSnapshotFlag {
|
||||
t.Log("updating snapshot results")
|
||||
updateRespSnapshot(t, tc.expRespPath, string(b))
|
||||
var prettyJSON bytes.Buffer
|
||||
if err := json.Indent(&prettyJSON, b, "", " "); err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
updateRespSnapshot(t, tc.expRespPath, prettyJSON.String())
|
||||
}
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user