File: 0001-fix-testisavailable.patch

package info (click to toggle)
golang-github-go-fed-httpsig 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 272 kB
  • sloc: makefile: 2
file content (27 lines) | stat: -rw-r--r-- 791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From aaea07ed54fedfe6054f9f7092663d2e14903144 Mon Sep 17 00:00:00 2001
From: Cory Slep <coryslep1@mac.com>
Date: Mon, 21 Dec 2020 22:20:30 +0100
Subject: [PATCH] Have test temporarily pass due to SHA1 inclusion

---
 algorithms_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/algorithms_test.go b/algorithms_test.go
index 84167c0..5c3a3a3 100644
--- a/algorithms_test.go
+++ b/algorithms_test.go
@@ -44,10 +44,11 @@ func TestIsAvailable(t *testing.T) {
 			expectError: true,
 		},
 		{
+			// TODO: Disable once https://github.com/golang/go/issues/37278 is fixed
 			name:        sha1String,
 			algo:        sha1String,
-			expected:    false,
-			expectError: true,
+			expected:    true,
+			expectError: false,
 		},
 		{
 			name:        sha224String,