File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,14 @@ func (c *runCommand) execute(_ *cobra.Command, _ []string) {
246
246
}
247
247
}()
248
248
249
- ctx := context .Background ()
249
+ ctx , cancel := context .WithCancel ( context . Background () )
250
250
if c .cfg .Run .Timeout > 0 {
251
- var cancel context.CancelFunc
252
251
ctx , cancel = context .WithTimeout (ctx , c .cfg .Run .Timeout )
253
- defer cancel ()
254
252
}
253
+ defer cancel ()
254
+
255
+ deadline , ok := ctx .Deadline ()
256
+ fmt .Println (deadline , ok )
255
257
256
258
if needTrackResources {
257
259
go watchResources (ctx , trackResourcesEndCh , c .log , c .debugf )
@@ -269,7 +271,7 @@ func (c *runCommand) execute(_ *cobra.Command, _ []string) {
269
271
}
270
272
}
271
273
272
- c .setupExitCode (ctx )
274
+ // c.setupExitCode(ctx)
273
275
}
274
276
275
277
func (c * runCommand ) startTracing () error {
You can’t perform that action at this time.
0 commit comments