[master] 19a1f7459 Simplify this test by using numeric comparisons

Poul-Henning Kamp phk at FreeBSD.org
Thu Feb 11 12:41:08 UTC 2021


commit 19a1f7459f415742618b424dba36e9e3b6c2362f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Feb 11 12:39:52 2021 +0000

    Simplify this test by using numeric comparisons

diff --git a/bin/varnishtest/tests/d00020.vtc b/bin/varnishtest/tests/d00020.vtc
index 877672f06..0c42285d7 100644
--- a/bin/varnishtest/tests/d00020.vtc
+++ b/bin/varnishtest/tests/d00020.vtc
@@ -220,8 +220,7 @@ client c2 {
 	rxresp
 	expect resp.http.hash		== "93d1c4ad76396c91dd97fa310f7f26445332662c89393dbeeb77fe49f9111ee4"
 	expect resp.http.by		== "HASH"
-	# == 0x93d1c4ad
-	expect resp.http.key		== 2479998125
+	expect resp.http.key		-eq 0x93d1c4ad
 	expect resp.http.alt		== 0
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "true"
@@ -231,8 +230,7 @@ client c2 {
 	rxresp
 	expect resp.http.hash		== "e47da20ea4db49d4f22acdadc69f02f445002be520a2865cd3351272add62540"
 	expect resp.http.by		== "HASH"
-	# == 0xe47da20e
-	expect resp.http.key		== 3833438734
+	expect resp.http.key		-eq 0xe47da20e
 	expect resp.http.alt		== 1
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "true"
@@ -272,8 +270,7 @@ client c3 {
 	rxresp
 	expect resp.http.hash		== "df9a465f8a0455c334b24c1638d3adda0f6e64fbe759029ab83602e3b9138884"
 	expect resp.http.by		== "HASH"
-	# == 0xdf9a465f
-	expect resp.http.key		== 3751429727
+	expect resp.http.key		-eq 0xdf9a465f
 	expect resp.http.alt		== 7
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "true"
@@ -283,8 +280,7 @@ client c3 {
 	rxresp
 	expect resp.http.hash		== "0eb35bc1fab5aad5902fd1bac86540bd13d43aa31c6c46f54e776b43392e66e6"
 	expect resp.http.by		== "HASH"
-	# == 0x0eb35bc1
-	expect resp.http.key		== 246635457
+	expect resp.http.key		-eq 0x0eb35bc1
 	expect resp.http.alt		== 8
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "true"
@@ -294,8 +290,7 @@ client c3 {
 	rxresp
 	expect resp.http.hash		== "1eb67b701ea07151cac5bea1f11b6267b9de15a3ff83cec995590480cbc2c750"
 	expect resp.http.by		== "HASH"
-	# == 0x1eb67b70
-	expect resp.http.key		== 515275632
+	expect resp.http.key		-eq 0x1eb67b70
 	expect resp.http.alt		== 9
 	expect resp.http.warmup	== "0.500"
 	expect resp.http.rampup	== "true"
@@ -305,8 +300,7 @@ client c3 {
 	rxresp
 	expect resp.http.hash		== "a11b617e21aa7db22b6205d7612002e595b1b00d8c11602017f65456a1be3a35"
 	expect resp.http.by		== "HASH"
-	# == 0xa11b617e
-	expect resp.http.key		== 2702926206
+	expect resp.http.key		-eq 0xa11b617e
 	expect resp.http.alt		== 10
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "false"
@@ -316,8 +310,7 @@ client c3 {
 	rxresp
 	expect resp.http.hash		== "d7eecc0ac83e1727332dcd8c7c8ae9f3114123abb2bf7e3fb15ecea8c84bb239"
 	expect resp.http.by		== "HASH"
-	# == 0xd7eecc0a
-	expect resp.http.key		== 3622751242
+	expect resp.http.key		-eq 0xd7eecc0a
 	expect resp.http.alt		== 11
 	expect resp.http.warmup	== "-1.000"
 	expect resp.http.rampup	== "true"


More information about the varnish-commit mailing list