Fix test with godbus 5.0.5
authorShengjing Zhu <zhsj@debian.org>
Sun, 17 Jul 2022 12:07:48 +0000 (20:07 +0800)
committerMichael Vogt <mvo@debian.org>
Thu, 1 Dec 2022 16:35:36 +0000 (16:35 +0000)
Due to https://github.com/godbus/dbus/pull/265, godbus only sends
auth name.

Forwarded: no

Gbp-Pq: Name 0011-Fix-test-with-godbus-5.0.5.patch

dbusutil/dbustest/dbustest.go

index cd690e749115435533fd0251dcba3d548382f43e..355e1764daa98cf57a4a32dce76e1b7dad2cd700 100644 (file)
@@ -85,7 +85,7 @@ func (s *testDBusStream) decodeRequest(req []byte) {
                        // initial NUL byte, ignore
                case "AUTH\r\n":
                        s.output <- []byte("REJECTED TEST\r\n")
-               case "AUTH TEST TEST\r\n":
+               case "AUTH TEST\r\n":
                        s.output <- []byte("OK test://\r\n")
                case "CANCEL\r\n":
                        s.output <- []byte("REJECTED\r\n")