@@ -137,7 +137,6 @@ func TestPluginSocketBackwardsCompatible(t *testing.T) {
137137 assert .Assert (t , errors .As (err , & exitError ))
138138 assert .Check (t , exitError .Exited ())
139139 assert .Check (t , is .Equal (exitError .ExitCode (), 1 ))
140- assert .Check (t , is .ErrorContains (err , "exit status 1" ))
141140
142141 // the plugin process does not receive a SIGINT and does
143142 // the CLI cannot cancel it over the socket, so it kills
@@ -199,11 +198,10 @@ func TestPluginSocketCommunication(t *testing.T) {
199198 assert .Assert (t , errors .As (err , & exitError ))
200199 assert .Check (t , exitError .Exited ())
201200 assert .Check (t , is .Equal (exitError .ExitCode (), 2 ))
202- assert .Check (t , is .ErrorContains (err , "exit status 2" ))
203201
204202 // the plugin does not get signalled, but it does get its
205203 // context canceled by the CLI through the socket
206- const expected = "test-socket: exiting after context was done\n exit status 2 "
204+ const expected = "test-socket: exiting after context was done"
207205 actual := strings .TrimSpace (string (out ))
208206 assert .Check (t , is .Equal (actual , expected ))
209207 })
@@ -238,7 +236,6 @@ func TestPluginSocketCommunication(t *testing.T) {
238236 assert .Assert (t , errors .As (err , & exitError ))
239237 assert .Check (t , exitError .Exited ())
240238 assert .Check (t , is .Equal (exitError .ExitCode (), 1 ))
241- assert .Check (t , is .ErrorContains (err , "exit status 1" ))
242239
243240 // the plugin process does not receive a SIGINT and does
244241 // not exit after having it's context canceled, so the CLI
0 commit comments