Commit b2929804 authored by Levin Zimmermann's avatar Levin Zimmermann

client_test: Add nmaster={1,2} to test matrix

Tests should work with both one master or more than one masters.
parent 6dba6409
......@@ -436,9 +436,11 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
f(work)
}
// TODO + all variants with nreplica=X, npartition=Y, nmaster=Z, ... ?
// TODO + all variants with nreplica=X, npartition=Y, ... ?
for _, nmaster := range []int{1, 1} {
for _, ssl := range []bool{false, true} {
kind := ""
if ssl { kind = "ssl" } else { kind = "!ssl" }
......@@ -446,7 +448,7 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
neoOpt := NEOSrvOptions{
name: "1",
SSL: ssl,
nmaster: 1,
nmaster: nmaster,
}
// startNEOpy starts NEO/py server with database in workdir/
......@@ -536,6 +538,7 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
})
})
}
}
}
// withNEO tests f on all kinds of NEO servers connected to by NEO client with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment