From f9713a2689bd419af90f2f1a5e6d5734cb685d35 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 13 Sep 2021 14:43:59 +0000 Subject: [PATCH] fixup! fix: cmd/update: do not use NewStrictVersion for user-provided version --- internal/cmd/update_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/cmd/update_test.go b/internal/cmd/update_test.go index 44a3d84d..fc85b709 100644 --- a/internal/cmd/update_test.go +++ b/internal/cmd/update_test.go @@ -412,15 +412,6 @@ func Test_getDesiredVersion(t *testing.T) { assert.Success(t, "error should be nil", err) assert.True(t, "should handle versions without trailing zero", expected.Equal(actual)) }) - - t.Run("empty coder URL", func(t *testing.T) { - t.Parallel() - - expected := &semver.Version{} - actual, err := getDesiredVersion(nil, "", "") - assert.ErrorContains(t, "error should be nil", err, "get coder url") - assert.True(t, "should handle versions without trailing zero", expected.Equal(actual)) - }) } // fakeGetter mocks HTTP requests. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy