From 1ef1b8323b2d546382387cc506f04c3e98ab246d Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sat, 11 Oct 2025 23:59:27 -0700 Subject: [PATCH] Make the linter happy --- act/runner/run_context_test.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/act/runner/run_context_test.go b/act/runner/run_context_test.go index 33739b52..4e11ba62 100644 --- a/act/runner/run_context_test.go +++ b/act/runner/run_context_test.go @@ -283,13 +283,13 @@ func TestRunContext_GetBindsAndMounts(t *testing.T) { func TestRunContext_GetGithubContextURL(t *testing.T) { table := []struct { instance string - serverUrl string - APIUrl string + serverURL string + APIURL string }{ - {instance: "", serverUrl: "", APIUrl: "/api/v1"}, - {instance: "example.com", serverUrl: "https://example.com", APIUrl: "https://example.com/api/v1"}, - {instance: "http://example.com", serverUrl: "http://example.com", APIUrl: "http://example.com/api/v1"}, - {instance: "https://example.com", serverUrl: "https://example.com", APIUrl: "https://example.com/api/v1"}, + {instance: "", serverURL: "", APIURL: "/api/v1"}, + {instance: "example.com", serverURL: "https://example.com", APIURL: "https://example.com/api/v1"}, + {instance: "http://example.com", serverURL: "http://example.com", APIURL: "http://example.com/api/v1"}, + {instance: "https://example.com", serverURL: "https://example.com", APIURL: "https://example.com/api/v1"}, } for _, data := range table { t.Run(data.instance, func(t *testing.T) { @@ -307,10 +307,9 @@ func TestRunContext_GetGithubContextURL(t *testing.T) { ghc := rc.getGithubContext(t.Context()) - assert.Equal(t, data.serverUrl, ghc.ServerURL) - assert.Equal(t, data.APIUrl, ghc.APIURL) + assert.Equal(t, data.serverURL, ghc.ServerURL) + assert.Equal(t, data.APIURL, ghc.APIURL) }) - } }