@@ -114,7 +114,7 @@ func runAutocompleteTest(ctx context.Context, tc *autoCompleteTestCase) func(*te
114114}
115115
116116func TestAutocomplete (t * testing.T ) {
117- ctx := core .InjectMeta (context . Background (), & core.Meta {
117+ ctx := core .InjectMeta (t . Context (), & core.Meta {
118118 Commands : testAutocompleteGetCommands (),
119119 })
120120
@@ -253,7 +253,7 @@ func TestAutocompleteArgs(t *testing.T) {
253253 }, nil
254254 },
255255 })
256- ctx := core .InjectMeta (context . Background (), & core.Meta {
256+ ctx := core .InjectMeta (t . Context (), & core.Meta {
257257 Commands : commands ,
258258 BetaMode : true ,
259259 })
@@ -272,7 +272,7 @@ func TestAutocompleteArgs(t *testing.T) {
272272
273273func TestAutocompleteProfiles (t * testing.T ) {
274274 commands := testAutocompleteGetCommands ()
275- ctx := core .InjectMeta (context . Background (), & core.Meta {
275+ ctx := core .InjectMeta (t . Context (), & core.Meta {
276276 Commands : commands ,
277277 BetaMode : true ,
278278 Platform : terminal .NewPlatform ("" ),
@@ -300,7 +300,7 @@ func TestAutocompleteProfiles(t *testing.T) {
300300}
301301
302302func TestAutocompleteDeprecatedCommand (t * testing.T ) {
303- ctx := core .InjectMeta (context . Background (), & core.Meta {
303+ ctx := core .InjectMeta (t . Context (), & core.Meta {
304304 Commands : testAutocompleteGetCommands (),
305305 })
306306
0 commit comments