@@ -309,6 +309,7 @@ func TestCoderRPCTimeout500MS(t *testing.T) {
309309}
310310
311311func decodeV1Logs (t * testing.T , w http.ResponseWriter , r * http.Request ) (agentsdk.PatchLogs , bool ) {
312+ t .Helper ()
312313 var req agentsdk.PatchLogs
313314 err := json .NewDecoder (r .Body ).Decode (& req )
314315 if ! assert .NoError (t , err ) {
@@ -319,6 +320,7 @@ func decodeV1Logs(t *testing.T, w http.ResponseWriter, r *http.Request) (agentsd
319320}
320321
321322func newCoderLogger (ctx context.Context , t * testing.T , us string , token string ) (Func , func ()) {
323+ t .Helper ()
322324 u , err := url .Parse (us )
323325 require .NoError (t , err )
324326 logger , closer , err := Coder (ctx , u , token )
@@ -339,6 +341,7 @@ func (d *fakeLogDest) BatchCreateLogs(ctx context.Context, request *proto.BatchC
339341}
340342
341343func testReplaceTimeout (t * testing.T , v * time.Duration , d time.Duration ) {
344+ t .Helper ()
342345 if isParallel (t ) {
343346 t .Fatal ("cannot replace timeout in parallel test" )
344347 }
@@ -348,6 +351,7 @@ func testReplaceTimeout(t *testing.T, v *time.Duration, d time.Duration) {
348351}
349352
350353func isParallel (t * testing.T ) (ret bool ) {
354+ t .Helper ()
351355 // This is a hack to determine if the test is running in parallel
352356 // via property of t.Setenv.
353357 defer func () {
0 commit comments