Fix extra file generated in tests of #1554 (#1880)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2024-08-02 07:33:13 -04:00 committed by GitHub
parent ce24a6b961
commit ed612a35ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1001,6 +1001,9 @@ func TestShow_corruptStatefile(t *testing.T) {
}
func TestShow_showSensitiveArg(t *testing.T) {
td := t.TempDir()
defer testChdir(t, td)()
originalState := stateWithSensitiveValueForShow()
testStateFileDefault(t, originalState)
@ -1030,6 +1033,9 @@ func TestShow_showSensitiveArg(t *testing.T) {
}
func TestShow_withoutShowSensitiveArg(t *testing.T) {
td := t.TempDir()
defer testChdir(t, td)()
originalState := stateWithSensitiveValueForShow()
testStateFileDefault(t, originalState)