[master] c582cefd5 vtc: Make t02011.vtc failures more visible

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Nov 13 11:11:15 UTC 2020


commit c582cefd5d085d63b2caefe6b56cc1385348190f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Nov 13 12:07:04 2020 +0100

    vtc: Make t02011.vtc failures more visible
    
    Seeing a test failure on vtest I think there might be a race here that I
    hope to make more explicit next time it occurs.

diff --git a/bin/varnishtest/tests/t02011.vtc b/bin/varnishtest/tests/t02011.vtc
index 10ed15286..6991e1025 100644
--- a/bin/varnishtest/tests/t02011.vtc
+++ b/bin/varnishtest/tests/t02011.vtc
@@ -32,7 +32,7 @@ varnish v1 -vcl+backend {
 
 	sub vcl_recv {
 		if (req.http.should == "reset") {
-			return (fail);
+			vtc.panic("Expected stream reset REFUSED_STREAM");
 		}
 	}
 


More information about the varnish-commit mailing list