Skip to content

Go. UTBot freezes when there is an infinite loop in a function #1802

Closed
@egiptipavel

Description

@egiptipavel

Description

UTBot freezes when there is an infinite loop in a function and then fails.

To Reproduce

Steps to reproduce the behavior:

  1. Write the following function:
func InfinityLoop(n int) {
	for {
	}
}
  1. Use plugin to generate tests

Expected behavior

Similar to this file should be generated.

package simple

// InfinityLoop(9223372036854775807) exceeded 1000 ms timeout

Actual behavior

UTBot freezes.

Environment

There is no specific environment.

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a buglang-goIssue is related to Go supportpriority-top-focusTop priority chosen by dev team

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions