Skip to content

Commit

Permalink
fix(tests/e2e): ensure spawned cmds are closed
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch>
  • Loading branch information
ghouscht committed Oct 1, 2024
1 parent 68e7122 commit ddf0ac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/v2store_deprecation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func TestV2DeprecationWriteOnlySnapshot(t *testing.T) {
t.Log("Verify its infeasible to start etcd with --v2-deprecation=write-only mode")
proc, err := e2e.SpawnCmd([]string{e2e.BinPath.Etcd, "--v2-deprecation=write-only", "--data-dir=" + memberDataDir}, nil)
assert.NoError(t, err)
defer proc.Close()

_, err = proc.Expect("detected disallowed custom content in v2store for stage --v2-deprecation=write-only")
assert.NoError(t, err)
Expand Down

0 comments on commit ddf0ac2

Please sign in to comment.