Skip to content

Potential testing Idea #300

@samliok

Description

@samliok

Instead of manually advancing the rounds in our tests what if we had this type of structure

net := createNetwork(nodes)
net.run() // this runs in the background triggering the block builder every 50ms

// network actions such as 
// net.changeMessageFilter
// net.disconnectNode
// ex.

net.waitRounds(50) // waits for approximately 50 rounds to progress
net.disconnect(nodes[0])
net.waitRounds(50) // another 50 rounds
net.connect(nodes[0])
net.crashAndRecover(nodes[0])
net.waitRounds(50)
net.Stop() // stop can also ensure consistency across nodes Storage

just a thought, wanted to note the idea down before i forget it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions