diff --git a/src/test/java/org/apache/maven/plugins/gpg/it/GpgSignAttachedMojoIT.java b/src/test/java/org/apache/maven/plugins/gpg/it/GpgSignAttachedMojoIT.java index e45ff40..ea36ac1 100644 --- a/src/test/java/org/apache/maven/plugins/gpg/it/GpgSignAttachedMojoIT.java +++ b/src/test/java/org/apache/maven/plugins/gpg/it/GpgSignAttachedMojoIT.java @@ -65,9 +65,9 @@ public void testInteractiveWithoutPassphrase() throws Exception // then assertThat( "Maven execution must fail", invocationResult.getExitCode(), not( 0 ) ); assertThat( - "Maven execution failed because pinentry input prompt timed out", + "Maven execution failed because no pinentry program is available", buildLogContent, - containsString( "[GNUPG:] FAILURE sign 83886142" ) + containsString( "[GNUPG:] FAILURE sign 67108949" ) ); } diff --git a/src/test/resources/gnupg/gpg-agent.conf b/src/test/resources/gnupg/gpg-agent.conf index 302d563..00efc6f 100644 --- a/src/test/resources/gnupg/gpg-agent.conf +++ b/src/test/resources/gnupg/gpg-agent.conf @@ -2,4 +2,4 @@ ignore-cache-for-signing # Prevent pinentry input prompts from blocking integration tests -pinentry-timeout 1 +pinentry-program pinentry-non-existent