From 56c3f4b01a5a9a904e3b399247d1d405f68499ac Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Wed, 25 Oct 2023 15:50:08 +0200 Subject: [PATCH] Fix test --- api_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_test.go b/api_test.go index 322cfe07..61e99971 100644 --- a/api_test.go +++ b/api_test.go @@ -1103,7 +1103,7 @@ func TestVersionEndpointReturnsVersion(t *testing.T) { t.Fatal("Unable to read body from response") } - if string(body) != `{"version": "git"}\n` { + if string(body) != "{\"version\": \"git\"}\n" { t.Fatal("Expected to return Version from /version, got:", string(body)) } })