Skip to content

Commit

Permalink
Renames global timer var for uniqueness (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
twig2let authored Jan 26, 2023
1 parent 445521b commit 4bdbca0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions framework/src/source/Test.bs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ namespace rooibos
end function

function run()
timer = createObject("roTimespan")
timer.mark()
rooibosTimer = createObject("roTimespan")
rooibosTimer.mark()

if m.isParamTest
m.runParamsTest()
else
m.testSuite[m.funcName]()
end if

m.result.time = timer.totalMilliseconds()
m.result.time = rooibosTimer.totalMilliseconds()

end function

Expand Down
6 changes: 3 additions & 3 deletions framework/src/source/TestRunner.bs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ namespace rooibos
' */
public function run()

timer = createObject("roTimespan")
timer.mark()
rooibosTimer = createObject("roTimespan")
rooibosTimer.mark()
suiteNames = m.runtimeConfig.getAllTestSuitesNames()
isFailed = false
failedText = ""
Expand Down Expand Up @@ -95,7 +95,7 @@ namespace rooibos
m.nodeContext.global.testsScene.failedText = "No tests were found"
end if

m.stats.time = timer.totalMilliseconds()
m.stats.time = rooibosTimer.totalMilliseconds()

m.testReporter.reportResults(m.stats)

Expand Down

0 comments on commit 4bdbca0

Please sign in to comment.