From 7c0f7eea70e08c506456dbeaefdaa71daaefd070 Mon Sep 17 00:00:00 2001
From: greatroar <@>
Date: Sun, 25 Oct 2020 11:09:04 +0100
Subject: [PATCH] Comment out path matching test that breaks on Go tip
---
client_integration_test.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/client_integration_test.go b/client_integration_test.go
index bd30852..156bdfc 100644
--- a/client_integration_test.go
+++ b/client_integration_test.go
@@ -1743,9 +1743,13 @@ var matchTests = []MatchTest{
{"[", "a", false, ErrBadPattern},
{"[^", "a", false, ErrBadPattern},
{"[^bc", "a", false, ErrBadPattern},
- {"a[", "a", false, nil},
{"a[", "ab", false, ErrBadPattern},
{"*x", "xxx", true, nil},
+
+ // The following test behaves differently on Go 1.15.3 and Go tip as
+ // https://github.com/golang/go/commit/b5ddc42b465dd5b9532ee336d98343d81a6d35b2
+ // (pre-Go 1.16). TODO: reevaluate when Go 1.16 is released.
+ //{"a[", "a", false, nil},
}
func errp(e error) string {