Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS-206 Demos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
CS-206 Demos
Commits
0fc99cf0
Commit
0fc99cf0
authored
1 year ago
by
Matt Bovel
Browse files
Options
Downloads
Patches
Plain Diff
Augment limits of the testing framework
parent
ca2629cb
No related branches found
No related tags found
No related merge requests found
Pipeline
#158958
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/scala/concpar21final03/instrumentation/TestHelper.scala
+2
-2
2 additions, 2 deletions
...t/scala/concpar21final03/instrumentation/TestHelper.scala
src/test/scala/instrumentation/TestHelper.scala
+3
-3
3 additions, 3 deletions
src/test/scala/instrumentation/TestHelper.scala
with
5 additions
and
5 deletions
src/test/scala/concpar21final03/instrumentation/TestHelper.scala
+
2
−
2
View file @
0fc99cf0
...
...
@@ -8,8 +8,8 @@ import Stats.*
object
TestHelper
:
val
noOfSchedules
=
10000
// set this to 100k during deployment
val
readWritesPerThread
=
2
0
// maximum number of read/writes possible in one thread
val
contextSwitchBound
=
1
0
10
0
// maximum number of read/writes possible in one thread
val
contextSwitchBound
=
50
0
val
testTimeout
=
150
// the total time out for a test in seconds
val
schedTimeout
=
15
// the total time out for execution of a schedule in secs
...
...
This diff is collapsed.
Click to expand it.
src/test/scala/instrumentation/TestHelper.scala
+
3
−
3
View file @
0fc99cf0
...
...
@@ -8,8 +8,8 @@ import Stats.*
object
TestHelper
:
val
noOfSchedules
=
10000
// set this to 100k during deployment
val
readWritesPerThread
=
2
0
// maximum number of read/writes possible in one thread
val
contextSwitchBound
=
1
0
10
0
// maximum number of read/writes possible in one thread
val
contextSwitchBound
=
50
0
val
testTimeout
=
240
// the total time out for a test in seconds
val
schedTimeout
=
15
// the total time out for execution of a schedule in secs
...
...
@@ -101,7 +101,7 @@ object TestHelper:
val
scheduleLength
=
readWritesPerThread
*
numThreads
val
rands
=
(
1
to
scheduleLength
).
map
(
i
=>
new
Random
(
0x
cafe
*
i
)
new
Random
(
0x
0042
*
i
)
)
// random numbers for choosing a thread at each position
def
schedules
()
:
LazyList
[
List
[
Int
]]
=
var
contextSwitches
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment