mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
app/{vminsert,vmselect}: test initialization with different number of storage nodes
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/3329
This commit is contained in:
parent
8540dd669b
commit
fe8d40f12c
@ -11,4 +11,18 @@ func TestInitStopNodes(t *testing.T) {
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
|
||||
// Try initializing the netstorage with bigger number of nodes
|
||||
for i := 0; i < 3; i++ {
|
||||
Init([]string{"host1", "host2", "host3"}, 0)
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
|
||||
// Try initializing the netstorage with smaller number of nodes
|
||||
for i := 0; i < 3; i++ {
|
||||
Init([]string{"host1"}, 0)
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,20 @@ func TestInitStopNodes(t *testing.T) {
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
|
||||
// Try initializing the netstorage with bigger number of nodes
|
||||
for i := 0; i < 3; i++ {
|
||||
Init([]string{"host1", "host2", "host3"})
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
|
||||
// Try initializing the netstorage with smaller number of nodes
|
||||
for i := 0; i < 3; i++ {
|
||||
Init([]string{"host1"})
|
||||
runtime.Gosched()
|
||||
MustStop()
|
||||
}
|
||||
}
|
||||
|
||||
func TestMergeSortBlocks(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user