From 287195b5b243be74828cd4409e0ec049ce56bc30 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 3 Mar 2024 17:58:29 +0100 Subject: [PATCH] Make test assertion more specific It's safe to rely on git padding the log messages with exactly four spaces (I think). This makes the diff of the following commit slightly clearer. --- pkg/integration/tests/commit/add_co_author.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/integration/tests/commit/add_co_author.go b/pkg/integration/tests/commit/add_co_author.go index 3a2021dac..46ac0d055 100644 --- a/pkg/integration/tests/commit/add_co_author.go +++ b/pkg/integration/tests/commit/add_co_author.go @@ -33,8 +33,8 @@ var AddCoAuthor = NewIntegrationTest(NewIntegrationTestArgs{ }) t.Views().Main().ContainsLines( - Contains("initial commit"), - Contains("Co-authored-by: John Smith "), + Equals(" initial commit"), + Equals(" Co-authored-by: John Smith "), ) }, })