From 01f88813e65b21060883025ea4cb4b481f676c88 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Tue, 18 Jun 2024 10:12:58 -0700 Subject: [PATCH] Adjust packaging test exit code assertion --- muted-tests.yml | 2 -- .../java/org/elasticsearch/packaging/test/PackageTests.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 1348bff149ed..b14943c7c7b6 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -67,8 +67,6 @@ tests: - class: "org.elasticsearch.xpack.shutdown.NodeShutdownReadinessIT" issue: "https://github.com/elastic/elasticsearch/issues/109838" method: "testShutdownReadinessService" -- class: "org.elasticsearch.packaging.test.PackageTests" - issue: "https://github.com/elastic/elasticsearch/issues/109852" # Examples: # diff --git a/qa/packaging/src/test/java/org/elasticsearch/packaging/test/PackageTests.java b/qa/packaging/src/test/java/org/elasticsearch/packaging/test/PackageTests.java index 5c38fa36a664..bff48ba74e8f 100644 --- a/qa/packaging/src/test/java/org/elasticsearch/packaging/test/PackageTests.java +++ b/qa/packaging/src/test/java/org/elasticsearch/packaging/test/PackageTests.java @@ -194,7 +194,7 @@ public void test50Remove() throws Exception { } assertThat(sh.runIgnoreExitCode("systemctl status elasticsearch.service").exitCode(), is(statusExitCode)); - assertThat(sh.runIgnoreExitCode("systemctl is-enabled elasticsearch.service").exitCode(), is(1)); + assertThat(sh.runIgnoreExitCode("systemctl is-enabled elasticsearch.service").exitCode(), not(0)); }