aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/outcome/sppulse_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/outcome/sppulse_test.go b/internal/outcome/sppulse_test.go
index 70fae9e9..f3f0635f 100644
--- a/internal/outcome/sppulse_test.go
+++ b/internal/outcome/sppulse_test.go
@@ -108,7 +108,7 @@ func TestSpPulseOp(t *testing.T) {
call("lookupEnv", stub.ExpectArgs{"PULSE_COOKIE"}, "proc/nonexistent/cookie", nil),
}, nil, nil, &hst.AppError{
Step: "locate PulseAudio cookie",
- Err: &check.AbsoluteError{Pathname: "proc/nonexistent/cookie"},
+ Err: check.AbsoluteError("proc/nonexistent/cookie"),
}, nil, nil, nil, nil, nil},
{"cookie loadFile", func(bool, bool) outcomeOp {
@@ -272,7 +272,7 @@ func TestDiscoverPulseCookie(t *testing.T) {
call("verbose", stub.ExpectArgs{[]any{(*check.Absolute)(nil)}}, nil, nil),
}}, &hst.AppError{
Step: "locate PulseAudio cookie",
- Err: &check.AbsoluteError{Pathname: "proc/nonexistent/pulse-cookie"},
+ Err: check.AbsoluteError("proc/nonexistent/pulse-cookie"),
}},
{"success override", fCheckPathname, stub.Expect{Calls: []stub.Call{
@@ -286,7 +286,7 @@ func TestDiscoverPulseCookie(t *testing.T) {
call("verbose", stub.ExpectArgs{[]any{(*check.Absolute)(nil)}}, nil, nil),
}}, &hst.AppError{
Step: "locate PulseAudio cookie",
- Err: &check.AbsoluteError{Pathname: "proc/nonexistent/home"},
+ Err: check.AbsoluteError("proc/nonexistent/home"),
}},
{"home stat", fCheckPathname, stub.Expect{Calls: []stub.Call{
@@ -321,7 +321,7 @@ func TestDiscoverPulseCookie(t *testing.T) {
call("verbose", stub.ExpectArgs{[]any{(*check.Absolute)(nil)}}, nil, nil),
}}, &hst.AppError{
Step: "locate PulseAudio cookie",
- Err: &check.AbsoluteError{Pathname: "proc/nonexistent/xdg"},
+ Err: check.AbsoluteError("proc/nonexistent/xdg"),
}},
{"xdg stat", fCheckPathname, stub.Expect{Calls: []stub.Call{