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) {
|