Skip to content

Commit c4870a4

Browse files
committed
testing: Call stop() to cleanup temporary directory
Stop() is required to remove the temporary directory: /tmp/k8s_test_framework_071578175 Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
1 parent 3c5b358 commit c4870a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/internal/testing/integration/internal/integration_tests/etcd_integration_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ var _ = Describe("Etcd", func() {
5757
// it will timeout, as we'll never see the "startup message" we are waiting
5858
// for on StdErr
5959
Expect(etcd.Start()).To(MatchError(ContainSubstring("timeout")))
60+
// Stop is required to cleanup the temporary directory
61+
Expect(etcd.Stop()).To(Succeed())
6062

6163
Expect(stdout.String()).To(ContainSubstring("Member:"))
6264
Expect(stderr.String()).To(ContainSubstring("Usage:"))

0 commit comments

Comments
 (0)