Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] test setups exported to allow us to use it from other packages #3042

Merged
merged 19 commits into from
Jan 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename fix
gediminasgu committed Dec 23, 2020
commit 156ddabf5a9ddca28725e70071871af85d2b8218
Original file line number Diff line number Diff line change
@@ -69,10 +69,10 @@ func testPeersBootstrapMergePeerBlocks(t *testing.T, setTestOpts setTestOptions,
opts = setTestOpts(t, opts)
namesp = opts.Namespaces()[0]
}
setupOpts := []bootstrappableTestSetupOptions{
{disablePeersBootstrapper: true},
{disablePeersBootstrapper: true},
{disablePeersBootstrapper: false},
setupOpts := []BootstrappableTestSetupOptions{
{DisablePeersBootstrapper: true},
{DisablePeersBootstrapper: true},
{DisablePeersBootstrapper: false},
}
setups, closeFn := NewDefaultBootstrappableTestSetups(t, opts, setupOpts)
defer closeFn()
10 changes: 5 additions & 5 deletions src/dbnode/integration/peers_bootstrap_none_available_test.go
Original file line number Diff line number Diff line change
@@ -89,14 +89,14 @@ func TestPeersBootstrapNoneAvailable(t *testing.T) {
SetShardSet(shardSet)
topoInit := topology.NewStaticInitializer(topoOpts)

setupOpts := []bootstrappableTestSetupOptions{
setupOpts := []BootstrappableTestSetupOptions{
{
disablePeersBootstrapper: false,
topologyInitializer: topoInit,
DisablePeersBootstrapper: false,
TopologyInitializer: topoInit,
},
{
disablePeersBootstrapper: false,
topologyInitializer: topoInit,
DisablePeersBootstrapper: false,
TopologyInitializer: topoInit,
},
}
setups, closeFn := NewDefaultBootstrappableTestSetups(t, opts, setupOpts)