File: 009-fix-test-cmd-newline.patch

package info (click to toggle)
golang-github-canonical-candid 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 2,944 kB
  • sloc: python: 1,840; sh: 248; makefile: 82
file content (22 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Mathias Gibbens <mathias@calenhad.com>
Description: The latest version of juju/cmd has changed its behavior to not include newlines. Not forwarded upstream because they are currently pinned to an older version of that library.
Forwarded: not-needed
diff --git a/cmd/candid/internal/admincmd/find_test.go b/cmd/candid/internal/admincmd/find_test.go
index a32eac7..5b009b1 100644
--- a/cmd/candid/internal/admincmd/find_test.go
+++ b/cmd/candid/internal/admincmd/find_test.go
@@ -36,12 +36,12 @@ func (s *findSuite) TestFindEmail(c *qt.C) {
 		Email:      "bob@example.com",
 	})
 	stdout := s.fixture.CheckSuccess(c, "find", "-a", "admin.agent", "-e", "bob@example.com")
-	c.Assert(stdout, qt.Equals, "bob\n")
+	c.Assert(stdout, qt.Equals, "bob")
 }
 
 func (s *findSuite) TestFindEmailNotFound(c *qt.C) {
 	stdout := s.fixture.CheckSuccess(c, "find", "-a", "admin.agent", "-e", "bob@example.com")
-	c.Assert(stdout, qt.Equals, "\n")
+	c.Assert(stdout, qt.Equals, "")
 }
 
 func (s *findSuite) TestFindNoParameters(c *qt.C) {