remove license file after test

pull/15376/head
Steven Powell 2022-11-18 09:14:33 -08:00
parent 6754740347
commit f19b19803b
1 changed files with 1 additions and 0 deletions

View File

@ -2215,6 +2215,7 @@ func validateLicenseCmd(ctx context.Context, t *testing.T, _ string) {
if rr, err := Run(t, exec.CommandContext(ctx, Target(), "license")); err != nil {
t.Fatalf("command %q failed: %v", rr.Stdout.String(), err)
}
defer os.Remove("./licenses")
files, err := os.ReadDir("./licenses")
if err != nil {
t.Fatalf("failed to read licenses dir: %v", err)