15345: Add .../containers/kill management API to dispatcher.
[arvados.git] / lib / dispatchcloud / scheduler / run_queue_test.go
index 9f26877f552c0b6e35af4661deb859f7a5085503..c683b704d48bb989664b55d71bd136dcc77ca999 100644 (file)
@@ -77,10 +77,13 @@ func (p *stubPool) Create(it arvados.InstanceType) bool {
        p.unalloc[it]++
        return true
 }
-func (p *stubPool) KillContainer(uuid string) {
+func (p *stubPool) ForgetContainer(uuid string) {
+}
+func (p *stubPool) KillContainer(uuid, reason string) bool {
        p.Lock()
        defer p.Unlock()
        delete(p.running, uuid)
+       return true
 }
 func (p *stubPool) Shutdown(arvados.InstanceType) bool {
        p.shutdowns++