diff --git a/tests/plugins/extprograms/pipe/errors.svtest b/tests/plugins/extprograms/pipe/errors.svtest
index 802caeed1fbc3ae7ed6e9bc6a12276bc69788680..af36b91127e41563ca5ec20d0ac3124ce8480734 100644
--- a/tests/plugins/extprograms/pipe/errors.svtest
+++ b/tests/plugins/extprograms/pipe/errors.svtest
@@ -84,12 +84,11 @@ test "Timeout" {
 		test_fail "pipe should have timed out";
 	}
 
-	if not test_error :count "eq" :comparator "i;ascii-numeric" "1" {
-  	test_fail "wrong number of errors reported";
-  }    
-
-	if not test_error :index 1 :contains "failed to pipe" {
-  	test_fail "wrong error reported";
-  }    
+	if not test_error :count "eq" :comparator "i;ascii-numeric" "2" {
+		test_fail "wrong number of errors reported";
+	}
 
+	if not test_error :index 2 :contains "failed to pipe" {
+		test_fail "wrong error reported";
+	}
 }