projects
/
snapd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8261a9
)
Fix test with godbus 5.0.5
author
Shengjing Zhu
<zhsj@debian.org>
Sun, 17 Jul 2022 12:07:48 +0000
(20:07 +0800)
committer
Shengjing Zhu
<zhsj@debian.org>
Sun, 17 Jul 2022 12:18:10 +0000
(13:18 +0100)
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
patch
|
blob
|
history
diff --git
a/dbusutil/dbustest/dbustest.go
b/dbusutil/dbustest/dbustest.go
index cd690e749115435533fd0251dcba3d548382f43e..355e1764daa98cf57a4a32dce76e1b7dad2cd700 100644
(file)
--- a/
dbusutil/dbustest/dbustest.go
+++ b/
dbusutil/dbustest/dbustest.go
@@
-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")