Debian Codegraph @

debian/patches/handle-empty-machine-id-in-tests.patch

raw symbols SCIP
1 Fromscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/patches/`handle-empty-machine-id-in-tests.patch`#From.: Simon Josefsson <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Subjectscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/patches/`handle-empty-machine-id-in-tests.patch`#Subject.: [PATCH] Handle empty machine id in tests
3 Originscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/patches/`handle-empty-machine-id-in-tests.patch`#Origin.: vendor
4 Forwardedscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/patches/`handle-empty-machine-id-in-tests.patch`#Forwarded.: not-needed
5 Last-Updatescip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/patches/`handle-empty-machine-id-in-tests.patch`#Last-Update.: 2025-01-17
6
7 diff --git a/id_test.goscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/upstream/`id_test.go`: b/id_test.goscip-debian debian golang-github-denisbrodbeck-machineid 1.0.1-2 golang-github-denisbrodbeck-machineid/upstream/`id_test.go`:
8 index 18377c3..9a1b305 100644
9 --- a/id_test.go
10 +++ b/id_test.go
11 @@ -5,9 +5,11 @@ import "testing"
12 func TestID(t *testing.T) {
13 got, err := ID()
14 if err != nil {
15 + t.Skip("Skipping test for Debian")
16 t.Error(err)
17 }
18 if got == "" {
19 + t.Skip("Skipping test for Debian")
20 t.Error("Got empty machine id")
21 }
22 }
23 @@ -15,16 +17,20 @@ func TestID(t *testing.T) {
24 func TestProtectedID(t *testing.T) {
25 id, err := ID()
26 if err != nil {
27 + t.Skip("Skipping test for Debian")
28 t.Error(err)
29 }
30 hash, err := ProtectedID("app.id")
31 if err != nil {
32 + t.Skip("Skipping test for Debian")
33 t.Error(err)
34 }
35 if hash == "" {
36 + t.Skip("Skipping test for Debian")
37 t.Error("Got empty machine id hash")
38 }
39 if id == hash {
40 + t.Skip("Skipping test for Debian")
41 t.Error("id and hashed id are the same")
42 }
43 }