From 5a903321b2ac17549b78208c8891665a70c77be8 Mon Sep 17 00:00:00 2001 From: pkulik0 Date: Tue, 28 May 2024 16:29:13 +0000 Subject: [PATCH] Add comment about tabular output padding --- cmd/jimmctl/cmd/relation_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/jimmctl/cmd/relation_test.go b/cmd/jimmctl/cmd/relation_test.go index 02ad395d5..2a8587fc9 100644 --- a/cmd/jimmctl/cmd/relation_test.go +++ b/cmd/jimmctl/cmd/relation_test.go @@ -383,6 +383,7 @@ user-eve@canonical.com administrator applicationoffer-test-controller-1:alice@ _, err := cmdtesting.RunCommand(c, cmd.NewAddGroupCommandForTesting(s.ClientStore(), bClient), groupName) c.Assert(err, gc.IsNil) + // -72 is used to fill the rest of the line with whitespace as the output is padded to the length of the longest row tabularOutput += fmt.Sprintf("\nuser-eve@canonical.com member group-%-72s", groupName) relations = append(relations, apiparams.RelationshipTuple{ Object: "user-" + env.users[1].Name,