From ab1f0be711d885002c33f98c450d4117e3357b55 Mon Sep 17 00:00:00 2001 From: Mark Anderson Date: Thu, 2 Jun 2022 13:25:47 -0700 Subject: [PATCH] Fix issue with consul version tests Signed-off-by: Mark Anderson --- command/version/formatter_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/version/formatter_test.go b/command/version/formatter_test.go index bbb12e89f..e532c487c 100644 --- a/command/version/formatter_test.go +++ b/command/version/formatter_test.go @@ -6,6 +6,7 @@ import ( "io/ioutil" "path/filepath" "testing" + "time" "github.com/stretchr/testify/require" ) @@ -31,12 +32,13 @@ func golden(t *testing.T, name, got string) string { } func TestFormat(t *testing.T) { + buildDate, _ := time.Parse(time.RFC3339, "2022-06-01T13:18:45Z") info := VersionInfo{ HumanVersion: "1.99.3-beta1", Version: "1.99.3", Prerelease: "beta1", Revision: "5e5dbedd47a5f875b60e241c5555a9caab595246", - BuildDate: "2022-06-01T13:18:45Z", + BuildDate: buildDate, RPC: RPCVersionInfo{ Default: 2, Min: 1,