(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func newPoolTestVM(t *testing.T) *VM { |
| 19 | t.Helper() |
| 20 | vm, e := NewVM() |
| 21 | if e != nil { |
| 22 | t.Fatal(e) |
| 23 | } |
| 24 | t.Cleanup(func() { _ = vm.Dispose() }) |
| 25 | return vm |
| 26 | } |
| 27 | |
| 28 | func TestVMPoolWaitsForAvailableVM(t *testing.T) { |
| 29 | pool := NewVMPool(newPoolTestVM(t), &VMPoolConfig{MaxTotal: 1, MaxIdle: 1}) |
no test coverage detected