From ee9b4943da1efe78384d5845ea27c531951c247f Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Fri, 10 May 2024 14:45:14 -0400 Subject: [PATCH] packer_test: remove local alias to ts.T() --- packer_test/loading_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packer_test/loading_test.go b/packer_test/loading_test.go index 1d277580c..461626540 100644 --- a/packer_test/loading_test.go +++ b/packer_test/loading_test.go @@ -7,12 +7,9 @@ import ( "path/filepath" "runtime" "strings" - "testing" ) func (ts *PackerTestSuite) TestLoadingOrder() { - t := ts.T() - pluginDir, cleanup := ts.MakePluginDir("1.0.9", "1.0.10") defer cleanup() @@ -40,11 +37,11 @@ func (ts *PackerTestSuite) TestLoadingOrder() { } for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { + ts.Run(tt.name, func() { ts.PackerCommand(). SetArgs(command, tt.templatePath). UsePluginDir(pluginDir). - Assert(t, MustSucceed(), Grep(tt.grepStr)) + Assert(ts.T(), MustSucceed(), Grep(tt.grepStr)) }) } }