Skip to content

Commit

Permalink
Merge pull request #75 from ddosify/fix-dynamic-variable-timestamp
Browse files Browse the repository at this point in the history
Fix dynamic variable timestamp
  • Loading branch information
fatihbaltaci authored Jul 18, 2022
2 parents cac99e2 + fe720dc commit 231ec08
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 @@ -201,6 +201,8 @@ func (vi *VariableInjector) fakeDataInjector(text string) (string, error) {
switch res.(type) {
case int:
p = strconv.Itoa(res.(int))
case int64:
p = strconv.FormatInt(res.(int64), 10)
case float64:
p = fmt.Sprintf("%f", res.(float64))
case uuid.UUID:
Expand Down

0 comments on commit 231ec08

Please sign in to comment.