File: 0001-Skip-tests-that-rely-on-git-submodules.patch

package info (click to toggle)
golang-github-multiformats-go-multihash 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 376 kB
  • sloc: sh: 138; makefile: 39
file content (31 lines) | stat: -rw-r--r-- 809 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
28
29
30
31
From: Reinhard Tartler <siretart@tauware.de>
Date: Sun, 22 Jun 2025 17:51:13 -0400
Subject: Skip tests that rely on git submodules
Forwarded: not-needed

---
 spec_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec_test.go b/spec_test.go
index 642bac1..58d6ab0 100644
--- a/spec_test.go
+++ b/spec_test.go
@@ -15,7 +15,7 @@ import (
 func TestSpec(t *testing.T) {
 	file, err := os.Open("spec/multicodec/table.csv")
 	if err != nil {
-		t.Fatal(err)
+		t.Skipf("Skipping test: %v", err)
 	}
 	defer file.Close()
 
@@ -73,7 +73,7 @@ func TestSpec(t *testing.T) {
 func TestSpecVectors(t *testing.T) {
 	file, err := os.Open("spec/multihash/tests/values/test_cases.csv")
 	if err != nil {
-		t.Error(err)
+		t.Skipf("Skipping test: %v", err)
 		return
 	}
 	defer file.Close()