Parallelize integration tests better
This commit is contained in:
parent
6ec56f2a88
commit
095489af2a
@ -127,6 +127,8 @@ func (c *NetworkConfig) fillDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if c.VPN.Tun.Device == "" {
|
if c.VPN.Tun.Device == "" {
|
||||||
|
// TODO if there are multiple Networks then each one needs a unique
|
||||||
|
// device name.
|
||||||
c.VPN.Tun.Device = "isle-tun"
|
c.VPN.Tun.Device = "isle-tun"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ func TestCreate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
t.Run("given config", func(t *testing.T) {
|
t.Run("given config", func(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
h = newIntegrationHarness(t)
|
h = newIntegrationHarness(t)
|
||||||
@ -53,6 +55,8 @@ func TestLoad(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestJoin(t *testing.T) {
|
func TestJoin(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
t.Run("simple", func(t *testing.T) {
|
t.Run("simple", func(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
h = newIntegrationHarness(t)
|
h = newIntegrationHarness(t)
|
||||||
@ -82,6 +86,8 @@ func TestJoin(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestNetwork_SetConfig(t *testing.T) {
|
func TestNetwork_SetConfig(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
allocsToRoles := func(
|
allocsToRoles := func(
|
||||||
hostName nebula.HostName, allocs []bootstrap.GarageHostInstance,
|
hostName nebula.HostName, allocs []bootstrap.GarageHostInstance,
|
||||||
) []garage.Role {
|
) []garage.Role {
|
||||||
|
@ -129,7 +129,7 @@ func (h *integrationHarness) mkNetworkConfig(
|
|||||||
c.VPN.PublicAddr = newPublicAddr()
|
c.VPN.PublicAddr = newPublicAddr()
|
||||||
}
|
}
|
||||||
|
|
||||||
c.VPN.Tun.Device = newTunDevice() // TODO is this necessary??
|
c.VPN.Tun.Device = newTunDevice()
|
||||||
|
|
||||||
c.Storage.Allocations = make(
|
c.Storage.Allocations = make(
|
||||||
[]daecommon.ConfigStorageAllocation, opts.numStorageAllocs,
|
[]daecommon.ConfigStorageAllocation, opts.numStorageAllocs,
|
||||||
|
Loading…
Reference in New Issue
Block a user