Skip to content

Commit

Permalink
Fix bool dynamic variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Sep 5, 2022
1 parent 077d44a commit a69b697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/scenario/scripting/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ func (vi *VariableInjector) fakeDataInjector(text string) (string, error) {
p = fmt.Sprintf("%f", res.(float64))
case uuid.UUID:
p = res.(uuid.UUID).String()
case bool:
p = strconv.FormatBool(res.(bool))
default:
p = res.(string)
}
Expand Down

0 comments on commit a69b697

Please sign in to comment.