[6.0] da278133d Fix failing tests in witness mode
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Jun 21 13:43:08 UTC 2024
commit da278133d18d6998fd50b96e9fec47c7e054e86a
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Sep 30 07:53:29 2019 +0200
Fix failing tests in witness mode
The simple fact that Witness records might show up in the log might
break logexpect commands. There's no reason why we'd want to expect
Witness records since their purpose is to be checked after the test
finishes.
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index 11f046f95..7a10ff8ce 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -281,7 +281,7 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
data = VSL_CDATA(t->c->rec.ptr);
len = VSL_LEN(t->c->rec.ptr) - 1;
- if (tag == SLT__Batch)
+ if (tag == SLT__Batch || tag == SLT_Witness)
continue;
ok = 1;
More information about the varnish-commit
mailing list