Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Dec 8, 2023
1 parent 5d97774 commit 5fecff1
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions tests/mbt/model/ccv_model.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module ccv_model {
all {
runningConsumers.size() > 0, // ensure there is a running consumer, otherwise this action does not make sense
nondet receiver = oneOf(runningConsumers)
DeliverVscPacket(recciver),
DeliverVscPacket(receiver),
},
}

Expand Down Expand Up @@ -249,18 +249,13 @@ module ccv_model {
(res, pack) => if(res.sendingTime >= pack.sendingTime) { res } else { pack }
)

// run maxByTest =
// all {
// assert(maxBy(Set(1, 2, 3), __x => __x) == 3),
// assert(maxBy(Set(1, 2, 3), __x => -__x) == 1),
// }
run earliestLatestTest = {
val packet1 = {
id: 1,
validatorSet: Map(),
sendingTime: 1 * Second,
timeoutTime: 1 * Second,
}
val packet1 = {
id: 1,
validatorSet: Map(),
sendingTime: 1 * Second,
timeoutTime: 1 * Second,
}

val packet2 = {
id: 2,
Expand Down

0 comments on commit 5fecff1

Please sign in to comment.