Skip to content

Commit c698aa2

Browse files
authored
Test: let's do the cleanup for every test (#12805)
1 parent efa12c0 commit c698aa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qa/integration/specs/cli/keystore_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
@logstash = @fixture.get_service("logstash")
3232
end
3333

34+
after do
35+
FileUtils.rm_f File.join(@logstash.logstash_home, 'config', 'logstash.keystore')
36+
end
37+
3438
context 'create' do
3539

3640
before do
@@ -52,10 +56,6 @@
5256
FileUtils.cp keystore, File.join(@logstash.logstash_home, 'config')
5357
end
5458

55-
after do
56-
FileUtils.rm_f File.join(@logstash.logstash_home, 'config', 'logstash.keystore')
57-
end
58-
5959
it "works" do
6060
keystore_list = @logstash.run_cmd(['bin/logstash-keystore', 'list'], true, 'LOGSTASH_KEYSTORE_PASS' => 'PaSSWD')
6161
expect(keystore_list.stderr_and_stdout).to_not match(/ERROR/)

0 commit comments

Comments
 (0)