Skip to content

Commit

Permalink
Merge pull request #21 from cgwic/patch-1
Browse files Browse the repository at this point in the history
Here we have to return milliseconds
  • Loading branch information
Apoorva-GA authored Jul 24, 2019
2 parents 2dfe78b + 922b101 commit 7818c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuit/funcExecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func executeFunc(fn reflect.Value, args ...interface{}) (res *m.ProtoExecutionRe
if r := recover(); r != nil {
res.ScreenShot = getScreenshot()
res.Failed = true
res.ExecutionTime = time.Since(start).Nanoseconds()
res.ExecutionTime = time.Since(start).Nanoseconds() / int64(time.Millisecond)
res.StackTrace = strings.SplitN(string(debug.Stack()), "\n", 9)[8]
res.ErrorMessage = fmt.Sprintf("%s", r)
}
Expand All @@ -51,7 +51,7 @@ func executeFunc(fn reflect.Value, args ...interface{}) (res *m.ProtoExecutionRe
res.StackTrace = T.getStacktraces()
res.ErrorMessage = T.getErrors()
}
res.ExecutionTime = time.Since(start).Nanoseconds()
res.ExecutionTime = time.Since(start).Nanoseconds() / int64(time.Millisecond)
return res
}

Expand Down

0 comments on commit 7818c41

Please sign in to comment.