Skip to content

Add dependency injection to siatest package

Christopher Schinnerl requested to merge siatest-dependencies into master

Created by: ChrisSchinnerl

This PR adds dependency injection to the siatest package by adding fields to the NodeParams for each module's dependencies. If the field is not set, a production dependency will be used instead.

e.g. a renter node could be created like this:

template := Renter("path/to/my/renter")
template.RenterDeps = myCustomDeps
renter, err := node.New(template)

Merge request reports