aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus/samples_test.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-09-28 17:47:15 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-09-28 17:47:15 +0900
commit342c66aae8d1ba558a1152cf190199ac28f2762e (patch)
tree9dfb74bb87a6c14a9ea0817c3725331986012261 /dbus/samples_test.go
parentcf182d1fbefd140280fb0e4f44773931a7531295 (diff)
dbus: replace test suffix * with +
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'dbus/samples_test.go')
-rw-r--r--dbus/samples_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbus/samples_test.go b/dbus/samples_test.go
index 8fde1d77..36a8c9fc 100644
--- a/dbus/samples_test.go
+++ b/dbus/samples_test.go
@@ -33,7 +33,7 @@ var samples = []dbusTestCase{
},
},
{
- "org.chromium.Chromium*", &dbus.Config{
+ "org.chromium.Chromium+", &dbus.Config{
See: nil,
Talk: []string{"org.freedesktop.Avahi", "org.freedesktop.UPower"},
Own: nil,
@@ -141,19 +141,19 @@ func testCaseGenerate() {
}
// skip already enumerated system bus test
- if tc.id[len(tc.id)-1] == '*' {
+ if tc.id[len(tc.id)-1] == '+' {
continue
}
ftp := [2]dbusTestCase{tc}
- // system proxy tests always place directly after its user counterpart with id ending in *
- if i+1 < len(testCasesV) && testCasesV[i+1].id[len(testCasesV[i+1].id)-1] == '*' {
+ // system proxy tests always place directly after its user counterpart with id ending in +
+ if i+1 < len(testCasesV) && testCasesV[i+1].id[len(testCasesV[i+1].id)-1] == '+' {
// attach system bus config
ftp[1] = testCasesV[i+1]
// check for misplaced/mismatching tests
- if ftp[0].wantErr != ftp[1].wantErr || ftp[0].id+"*" != ftp[1].id {
+ if ftp[0].wantErr != ftp[1].wantErr || ftp[0].id+"+" != ftp[1].id {
panic("mismatching session/system pairing")
}
}