From 342c66aae8d1ba558a1152cf190199ac28f2762e Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sat, 28 Sep 2024 17:47:15 +0900 Subject: [PATCH] dbus: replace test suffix * with + Signed-off-by: Ophestra Umiker --- dbus/samples_test.go | 10 +++++----- ...mium.Chromium*.json => org.chromium.Chromium+.json} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename dbus/testdata/{org.chromium.Chromium*.json => org.chromium.Chromium+.json} (100%) diff --git a/dbus/samples_test.go b/dbus/samples_test.go index 8fde1d7..36a8c9f 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") } } diff --git a/dbus/testdata/org.chromium.Chromium*.json b/dbus/testdata/org.chromium.Chromium+.json similarity index 100% rename from dbus/testdata/org.chromium.Chromium*.json rename to dbus/testdata/org.chromium.Chromium+.json